scsi: qla2xxx: Change a stack variable into a static const variable
authorBart Van Assche <bvanassche@acm.org>
Thu, 4 Apr 2019 19:44:39 +0000 (12:44 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 9 Apr 2019 02:16:34 +0000 (22:16 -0400)
commitc02ee1e5a946575feea01367f647c56e24525f22
treef5c8a8d180915ddd6412deded6aacba380422668
parent5585cbddce0e1bb6f501c861334f1fac1c601567
scsi: qla2xxx: Change a stack variable into a static const variable

Make qla2x00_get_host_fabric_name() slightly faster by changing a stack
array into a static array. Declare that array const now that the
wwn_to_u64() argument pointer has been declared const.

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_attr.c