diff options
author | Tobin C. Harding <me@tobin.cc> | 2017-02-22 17:12:38 +1100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-22 11:54:49 -0700 |
commit | 48efbfbf6353af15d97ef37216146e550403c773 (patch) | |
tree | 493811aebd1b58efb402183a8dec56a1e0617615 /drivers/block | |
parent | 19a5e10c3b53772cfe47a23963ebcb941d81e695 (diff) | |
download | linux-48efbfbf6353af15d97ef37216146e550403c773.tar.bz2 |
cciss: Remove kmalloc cast
Coccinelle emits a warning about casting the return value of
kmalloc(). Coccinelle suggests removing the cast as do
kerneljanitors.
Remove cast from kmalloc() call.
Signed-off-by: Tobin C. Harding <me@tobin.cc>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/cciss_scsi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/cciss_scsi.c b/drivers/block/cciss_scsi.c index f5c21f3edca4..01a1f7e24978 100644 --- a/drivers/block/cciss_scsi.c +++ b/drivers/block/cciss_scsi.c @@ -647,8 +647,7 @@ cciss_scsi_setup(ctlr_info_t *h) struct cciss_scsi_adapter_data_t * shba; ccissscsi[h->ctlr].ndevices = 0; - shba = (struct cciss_scsi_adapter_data_t *) - kmalloc(sizeof(*shba), GFP_KERNEL); + shba = kmalloc(sizeof(*shba), GFP_KERNEL); if (shba == NULL) return; shba->scsi_host = NULL; |