From: Zhang Yanfei Date: Tue, 12 Mar 2013 05:18:47 +0000 (+0800) Subject: s390/dasd: remove cast for kzalloc return value X-Git-Tag: upstream/snapshot3+hdmi~5299^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=006485dc4859a08c71879ce1d82e88f9105488a2;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git s390/dasd: remove cast for kzalloc return value remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei Signed-off-by: Heiko Carstens --- diff --git a/drivers/s390/block/dasd_devmap.c b/drivers/s390/block/dasd_devmap.c index c196827..a71bb8a 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) 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);