From: Stephen M. Cameron Date: Sat, 12 Mar 2011 09:02:24 +0000 (+0100) Subject: cciss: remove unnecessary casts X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fcab1c112ade881d884cd7b8161f7543194d12e1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git cciss: remove unnecessary casts Signed-off-by: Stephen M. Cameron Signed-off-by: Jens Axboe --- diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index f21116cb8b82..25267e92ce31 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -1529,8 +1529,7 @@ static int cciss_bigpassthru(ctlr_info_t *h, void __user *argp) return -EINVAL; if (!capable(CAP_SYS_RAWIO)) return -EPERM; - ioc = (BIG_IOCTL_Command_struct *) - kmalloc(sizeof(*ioc), GFP_KERNEL); + ioc = kmalloc(sizeof(*ioc), GFP_KERNEL); if (!ioc) { status = -ENOMEM; goto cleanup1;