s390/dasd: remove cast for kzalloc return value
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Tue, 12 Mar 2013 05:18:47 +0000 (13:18 +0800)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:27 +0000 (14:07 +0200)
remove cast for kzalloc return value.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
drivers/s390/block/dasd_devmap.c

index c196827c228fb9f3ce79412e7422051f2307d14d..a71bb8aaca1de2a86497f1c7b9e07155019c47a0 100644 (file)
@@ -410,8 +410,7 @@ dasd_add_busid(const char *bus_id, int features)
        struct dasd_devmap *devmap, *new, *tmp;
        int hash;
 
-       new = (struct dasd_devmap *)
-               kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
+       new = kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
        if (!new)
                return ERR_PTR(-ENOMEM);
        spin_lock(&dasd_devmap_lock);