diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-06-28 12:23:10 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-02 16:17:22 -0400 |
commit | 915d9b71422126076f1971f1a44561ae76890060 (patch) | |
tree | 577e9669b271e08cb17b69a7921e89d7775b0d64 /drivers/scsi/sd_zbc.c | |
parent | 1262dc09dc9ae7bf4ad00b6a2c5ed6a6936bcd10 (diff) |
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>
Diffstat (limited to 'drivers/scsi/sd_zbc.c')
0 files changed, 0 insertions, 0 deletions