[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130312072248.GC4148@osiris>
Date: Tue, 12 Mar 2013 08:22:48 +0100
From: Heiko Carstens <heiko.carstens@...ibm.com>
To: Zhang Yanfei <zhangyanfei@...fujitsu.com>
Cc: Martin Schwidefsky <schwidefsky@...ibm.com>,
Andrew Morton <akpm@...ux-foundation.org>, linux390@...ibm.com,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 10/18] driver: s390: block: remove cast for kzalloc
return value
On Tue, Mar 12, 2013 at 01:18:47PM +0800, Zhang Yanfei wrote:
> remove cast for kzalloc return value.
[...]
> 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);
Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists