aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/block
diff options
context:
space:
mode:
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>2013-03-12 01:18:47 -0400
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2013-04-17 08:07:27 -0400
commit006485dc4859a08c71879ce1d82e88f9105488a2 (patch)
treea73dd3ad6a0fd8f3547a30a0cf49adf152c23afe /drivers/s390/block
parent3d04fea5e7527e950b31542f27df5cb51ca581b4 (diff)
s390/dasd: remove cast for kzalloc return value
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>
Diffstat (limited to 'drivers/s390/block')
-rw-r--r--drivers/s390/block/dasd_devmap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c
index c196827c228f..a71bb8aaca1d 100644
--- a/drivers/s390/block/dasd_devmap.c
+++ b/drivers/s390/block/dasd_devmap.c
@@ -410,8 +410,7 @@ dasd_add_busid(const char *bus_id, int features)
410 struct dasd_devmap *devmap, *new, *tmp; 410 struct dasd_devmap *devmap, *new, *tmp;
411 int hash; 411 int hash;
412 412
413 new = (struct dasd_devmap *) 413 new = kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
414 kzalloc(sizeof(struct dasd_devmap), GFP_KERNEL);
415 if (!new) 414 if (!new)
416 return ERR_PTR(-ENOMEM); 415 return ERR_PTR(-ENOMEM);
417 spin_lock(&dasd_devmap_lock); 416 spin_lock(&dasd_devmap_lock);