Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932155Ab3CLFUW (ORCPT ); Tue, 12 Mar 2013 01:20:22 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:34346 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753910Ab3CLFUV (ORCPT ); Tue, 12 Mar 2013 01:20:21 -0400 X-IronPort-AV: E=Sophos;i="4.84,827,1355068800"; d="scan'208";a="6856380" Message-ID: <513EBAB7.1030606@cn.fujitsu.com> Date: Tue, 12 Mar 2013 13:18:47 +0800 From: Zhang Yanfei User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.8) Gecko/20121012 Thunderbird/10.0.8 MIME-Version: 1.0 To: Martin Schwidefsky , Heiko Carstens , Andrew Morton CC: linux390@de.ibm.com, "linux-kernel@vger.kernel.org" Subject: [PATCH 10/18] driver: s390: block: remove cast for kzalloc return value References: <513EB23D.7020303@cn.fujitsu.com> In-Reply-To: <513EB23D.7020303@cn.fujitsu.com> X-MIMETrack: Itemize by SMTP Server on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/12 13:19:06, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/12 13:19:07, Serialize complete at 2013/03/12 13:19:07 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1143 Lines: 33 remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Andrew Morton Cc: linux390@de.ibm.com --- drivers/s390/block/dasd_devmap.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) 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); -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/