[SCSI] qla2xxx: Fix for warnings reported by sparse.
Signed-off-by: Giridhar Malavali <giridhar.malavali@qlogic.com> Signed-off-by: Saurav Kashyap <saurav.kashyap@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
committed by
James Bottomley
parent
681e014b20
commit
fa4926306a
@@ -2486,9 +2486,9 @@ struct bidi_statistics {
|
||||
#define QLA_MAX_QUEUES 256
|
||||
#define ISP_QUE_REG(ha, id) \
|
||||
((ha->mqenable || IS_QLA83XX(ha)) ? \
|
||||
((void *)(ha->mqiobase) +\
|
||||
((device_reg_t __iomem *)(ha->mqiobase) +\
|
||||
(QLA_QUE_PAGE * id)) :\
|
||||
((void *)(ha->iobase)))
|
||||
((device_reg_t __iomem *)(ha->iobase)))
|
||||
#define QLA_REQ_QUE_ID(tag) \
|
||||
((tag < QLA_MAX_QUEUES && tag > 0) ? tag : 0)
|
||||
#define QLA_DEFAULT_QUE_QOS 5
|
||||
|
||||
Reference in New Issue
Block a user