Re: [PATCH] scsi: qedi: tidy up a size caculation

2018-07-02 Thread Martin K. Petersen
Dan, > 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

RE: [PATCH] scsi: qedi: tidy up a size caculation

2018-06-28 Thread Rangankar, Manish
t; janit...@vger.kernel.org > Subject: [PATCH] scsi: qedi: tidy up a size caculation > > External Email > > 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 a

[PATCH] scsi: qedi: tidy up a size caculation

2018-06-28 Thread Dan Carpenter
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