]> www.infradead.org Git - users/jedix/linux-maple.git/commit
qla2xxx: Replace two macros with an inline function
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 6 Oct 2015 06:08:24 +0000 (11:38 +0530)
committerDan Duval <dan.duval@oracle.com>
Thu, 15 Oct 2015 21:13:47 +0000 (17:13 -0400)
commitf8906283d568658ee12dcfa7f8e7d45d2a71540d
tree2ae56f2a2a5e707fc8b3f0b8614f87c9d9e03f2f
parent3883b243d3abf47c50dfe5da7ecd3d313cdda3a5
qla2xxx: Replace two macros with an inline function

Orabug: 21946579

Replace the QLA82XX_ADDR_IN_RANGE() and QLA8044_ADDR_IN_RANGE() macros
with the inline function addr_in_range(). This avoids that the compiler
reports the following warning when building with W=1: comparison of
unsigned expression >= 0 is always true.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Acked-by: Himanshu Madhani <himanshu.madhani@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Signed-off-by: Dan Duval <dan.duval@oracle.com>
drivers/scsi/qla2xxx/qla_nx.c
drivers/scsi/qla2xxx/qla_nx2.c
drivers/scsi/qla2xxx/qla_nx2.h