Commit 48efbfbf authored by Tobin C. Harding's avatar Tobin C. Harding Committed by Jens Axboe
Browse files

cciss: Remove kmalloc cast

Coccinelle emits a warning about casting the return value of
kmalloc(). Coccinelle suggests removing the cast as do

Remove cast from kmalloc() call.
Signed-off-by: default avatarTobin C. Harding <>
Acked-by: default avatarDon Brace <>
Signed-off-by: default avatarJens Axboe <>
parent 19a5e10c
......@@ -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)
shba->scsi_host = NULL;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment