]> git.karo-electronics.de Git - linux-beck.git/commitdiff
cciss: remove unnecessary casts
authorStephen M. Cameron <scameron@beardog.cce.hp.com>
Sat, 12 Mar 2011 09:02:24 +0000 (10:02 +0100)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 12 Mar 2011 09:02:24 +0000 (10:02 +0100)
Signed-off-by: Stephen M. Cameron <scameron@beardog.cce.hp.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
drivers/block/cciss.c

index f21116cb8b82fb298e92b150bb0806c744d49e7c..25267e92ce31c847fc1ed4ee35bec689da1c707a 100644 (file)
@@ -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;