qla2xxx: Replace two macros with an inline function
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 9 Jul 2015 14:23:46 +0000 (07:23 -0700)
committerJames Bottomley <JBottomley@Odin.com>
Wed, 26 Aug 2015 17:35:35 +0000 (10:35 -0700)
commitdf3f4cd0defd5f832a806ca1f0dd6638a2df17a5
tree71247576da136aa11c258ffaf9724bc43d86e94b
parent52c82823cc686d4faf9e9bc4feec4bf48c36fded
qla2xxx: Replace two macros with an inline function

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>
drivers/scsi/qla2xxx/qla_nx.c
drivers/scsi/qla2xxx/qla_nx2.c
drivers/scsi/qla2xxx/qla_nx2.h