scsi: devinfo: use const_ilog2 for array indices
authorMartin Wilck <mwilck@suse.com>
Tue, 17 Apr 2018 23:35:07 +0000 (01:35 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 Apr 2018 23:14:28 +0000 (19:14 -0400)
commit659c1c1b29ebc4af9148eed74a9f28f00b8b6dc6
treeb7cef1f4b4390c4ea749c4560a1fe390a1710424
parentdbef91ec5482239055dd2db8ec656fc13d382add
scsi: devinfo: use const_ilog2 for array indices

Use the just introduced const_ilog2() macro to avoid sparse errors.

Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_debugfs.c
drivers/scsi/scsi_sysfs.c