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
..
2018-06-26 11:57:01 -04:00
2018-06-14 16:35:32 +09:00
2018-06-12 16:19:22 -07:00
2018-03-21 18:46:30 -04:00
2018-06-12 16:19:22 -07:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2018-04-09 21:32:45 -04:00
2018-06-21 22:57:39 -04:00
2018-04-03 17:38:39 -07:00
2017-06-20 12:18:27 +02:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2018-06-19 22:02:25 -04:00
2018-07-02 16:14:40 -04:00
2017-12-04 22:56:04 -05:00
2018-06-12 16:19:22 -07:00
2018-02-13 21:37:01 -05:00
2018-06-26 12:53:26 -04:00
2018-06-26 12:00:27 -04:00
2018-06-26 12:53:26 -04:00
2018-06-26 12:53:26 -04:00
2018-03-01 21:07:48 -05:00
2018-06-10 13:01:12 -07:00
2018-03-19 22:54:47 -04:00
2018-06-12 16:19:22 -07:00
2018-06-10 13:01:12 -07:00
2018-07-02 16:17:22 -04:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2018-06-19 22:02:25 -04:00
2018-05-18 12:22:49 -04:00
2018-06-26 12:27:07 -04:00
2018-06-26 12:27:06 -04:00
2017-10-25 05:40:22 -04:00
2018-05-08 01:32:18 -04:00
2017-12-04 20:32:53 -05:00
2017-12-04 20:32:53 -05:00
2018-06-19 22:02:25 -04:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2018-05-01 23:31:40 -04:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2018-06-26 12:53:26 -04:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-05-01 23:29:41 -04:00
2017-08-25 17:21:11 -04:00
2018-03-01 21:10:36 -05:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-04-21 10:31:33 -04:00
2018-06-26 12:27:06 -04:00
2017-11-02 11:10:55 +01:00
2018-06-26 12:27:06 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2018-05-18 12:03:51 -04:00
2018-03-15 00:25:37 -04:00
2017-08-10 19:55:35 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2017-08-25 17:21:10 -04:00
2017-11-02 11:10:55 +01:00
2018-06-26 12:53:26 -04:00
2017-10-25 04:55:18 -04:00
2018-06-14 16:35:32 +09:00
2018-03-14 23:31:13 -04:00
2017-08-25 17:21:10 -04:00
2018-06-26 12:27:07 -04:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-04-20 19:40:17 -04:00
2018-04-20 19:40:17 -04:00
2018-04-19 00:00:44 -04:00
2018-03-12 22:05:43 -04:00
2018-04-19 00:00:44 -04:00
2017-08-22 16:34:36 +02:00
2018-06-19 22:02:25 -04:00
2018-06-12 16:19:22 -07:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2017-08-10 19:55:34 -04:00
2017-08-25 17:21:11 -04:00
2018-06-10 13:01:12 -07:00
2018-06-19 22:02:25 -04:00
2018-06-19 22:02:25 -04:00
2018-06-26 12:27:07 -04:00
2017-11-02 11:10:55 +01:00
2018-03-19 22:54:47 -04:00
2017-11-02 11:10:55 +01:00
2018-06-10 13:01:12 -07:00
2017-11-21 15:57:07 -08:00
2017-11-14 16:23:44 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-09-01 11:59:17 +02:00
2017-11-02 11:10:55 +01:00
2018-06-19 22:02:25 -04:00
2017-10-16 22:38:44 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2018-02-13 21:49:15 -05:00
2017-12-04 20:32:52 -05:00
2017-11-02 11:10:55 +01:00
2017-10-05 15:01:17 +02:00
2017-10-05 15:01:17 +02:00
2017-08-25 17:21:11 -04:00
2017-11-02 11:10:55 +01:00
2017-08-25 17:21:11 -04:00
2018-06-26 12:53:26 -04:00
2017-11-02 11:10:55 +01:00
2018-02-12 11:43:25 -05:00
2017-12-11 21:39:39 -05:00
2018-06-12 16:19:22 -07:00
2018-04-20 19:14:28 -04:00
2017-04-26 15:09:04 -06:00
2018-04-20 19:14:36 -04:00
2018-04-18 19:34:08 -04:00
2018-06-26 12:53:26 -04:00
2018-06-26 12:27:06 -04:00
2017-11-02 11:10:55 +01:00
2018-06-26 12:53:26 -04:00
2017-11-14 16:23:44 -08:00
2017-04-13 13:58:20 -04:00
2017-12-07 21:13:45 -05:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-26 12:27:06 -04:00
2018-06-26 12:53:26 -04:00
2017-11-02 11:10:55 +01:00
2018-06-26 11:58:07 -04:00
2018-05-29 13:00:25 -06:00
2018-06-10 13:01:12 -07:00
2018-06-26 12:27:06 -04:00
2018-06-04 07:58:06 -07:00
2018-06-26 12:53:26 -04:00
2018-06-19 22:02:25 -04:00
2017-11-02 11:10:55 +01:00
2018-06-14 16:35:32 +09:00
2018-06-26 12:34:43 -04:00
2018-04-19 00:00:44 -04:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2018-06-19 22:02:25 -04:00
2017-08-25 17:21:10 -04:00
2018-05-21 12:21:14 -06:00
2017-11-02 11:10:55 +01:00
2018-04-11 11:26:09 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-06-12 16:19:22 -07:00
2017-11-02 11:10:55 +01:00
2017-04-26 18:32:29 -04:00
2018-06-10 13:01:12 -07:00
2017-08-25 17:21:11 -04:00
2018-03-12 22:05:43 -04:00
2017-06-27 21:46:55 -04:00
2018-06-12 16:19:22 -07:00
2018-05-01 23:15:40 -04:00
2017-08-25 17:21:10 -04:00
2018-05-01 23:30:12 -04:00
2017-11-02 11:10:55 +01:00
2017-06-12 21:02:04 -04:00
2017-08-22 16:34:36 +02:00
2018-04-19 00:00:44 -04:00