linux/drivers/scsi/qedi
Dan Carpenter 915d9b7142 scsi: qedi: tidy up a size calculation
The id_tbl->table pointer points to unsigned long so static checkers
complain that instead of 4 we should be allocating sizeof(long) bytes.

We're trying to allocate enough bits for the bitmap.  The size variable is
always 1024.  (1024 / 32 * 4) is the same as (1024 / 64 * 8) so this
doesn't change runtime, but this is the more idiomatic way to do it and
makes the static checker happy.

[mkp: typo]

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Manish Rangankar <Manish.Rangankar@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-07-02 16:17:22 -04:00
..
Kconfig qed: Fix iWARP out of order flow 2017-10-19 12:46:43 +01:00
Makefile qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_dbg.c scsi: qedi: return via va_end to match corresponding va_start 2017-01-05 00:31:13 -05:00
qedi_dbg.h scsi: qedi: fix build regression 2018-02-27 21:19:13 -05:00
qedi_debugfs.c scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_fw_api.c scsi: qedi: Fix misleading indentation 2018-06-26 12:30:11 -04:00
qedi_fw_iscsi.h qed*: HSI renaming for different types of HW 2018-01-02 13:59:15 -05:00
qedi_fw_scsi.h qed*: Utilize Firmware 8.15.3.0 2017-03-13 15:33:09 -07:00
qedi_fw.c Merge branch 'fixes' into misc 2018-04-03 17:38:39 -07:00
qedi_gbl.h scsi: qedi: fix building with LTO 2018-02-13 21:37:00 -05:00
qedi_hsi.h
qedi_iscsi.c qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qedi_iscsi.h qedi: Add support for populating ethernet TLVs. 2018-05-22 23:29:54 -04:00
qedi_main.c scsi: qedi: tidy up a size calculation 2018-07-02 16:17:22 -04:00
qedi_nvm_iscsi_cfg.h scsi: qedi: Add support for Boot from SAN over iSCSI offload 2017-07-12 16:52:27 -04:00
qedi_sysfs.c
qedi_version.h qed*: Advance drivers' version to 8.33.0.20 2018-01-02 13:59:16 -05:00
qedi.h qedi: Add support for populating ethernet TLVs. 2018-05-22 23:29:54 -04:00