mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
19a5e10c3b
commit
48efbfbf63
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue