scsi: qla2xxx: Use ARRAY_SIZE() in the definition of QLA_LAST_SPEED
authorBart Van Assche <bvanassche@acm.org>
Thu, 4 Apr 2019 19:44:41 +0000 (12:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Apr 2019 02:16:34 +0000 (22:16 -0400)
commitb0a1c5b5c38ad6ee813875a28472774474d72589
tree7967286d5176c6f306591d79c8741b49c171d2de
parentabe5706dcf47cfdf0b929fff727279614df3c263
scsi: qla2xxx: Use ARRAY_SIZE() in the definition of QLA_LAST_SPEED

Make the code easier to read by avoiding to use a hard-coded constant. This
patch does not change any functionality.

Cc: Himanshu Madhani <hmadhani@marvell.com>
Cc: Giridhar Malavali <gmalavali@marvell.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: Himanshu Madhani <hmadhani@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla2xxx/qla_isr.c