Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754746Ab3CLFYQ (ORCPT ); Tue, 12 Mar 2013 01:24:16 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:6409 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753685Ab3CLFYP (ORCPT ); Tue, 12 Mar 2013 01:24:15 -0400 X-IronPort-AV: E=Sophos;i="4.84,827,1355068800"; d="scan'208";a="6856406" Message-ID: <513EBBA0.60804@cn.fujitsu.com> Date: Tue, 12 Mar 2013 13:22:40 +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: Ursula Braun , Frank Blaschka , Martin Schwidefsky , Heiko Carstens , Andrew Morton CC: linux390@de.ibm.com, linux-s390@vger.kernel.org, "linux-kernel@vger.kernel.org" Subject: [PATCH 11/18] driver: s390: net: 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:23:00, Serialize by Router on mailserver/fnst(Release 8.5.3|September 15, 2011) at 2013/03/12 13:23:01, Serialize complete at 2013/03/12 13:23:01 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: 1255 Lines: 35 remove cast for kzalloc return value. Signed-off-by: Zhang Yanfei Cc: Ursula Braun Cc: Frank Blaschka Cc: Martin Schwidefsky Cc: Heiko Carstens Cc: Andrew Morton Cc: linux390@de.ibm.com Cc: linux-s390@vger.kernel.org --- drivers/s390/net/qeth_core_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/s390/net/qeth_core_main.c b/drivers/s390/net/qeth_core_main.c index 0d8cdff..754a54f 100644 --- a/drivers/s390/net/qeth_core_main.c +++ b/drivers/s390/net/qeth_core_main.c @@ -316,7 +316,7 @@ static inline int qeth_alloc_cq(struct qeth_card *card) card->qdio.no_in_queues = 2; - card->qdio.out_bufstates = (struct qdio_outbuf_state *) + card->qdio.out_bufstates = kzalloc(card->qdio.no_out_queues * QDIO_MAX_BUFFERS_PER_Q * sizeof(struct qdio_outbuf_state), GFP_KERNEL); -- 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/