Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755162AbbHFLQZ (ORCPT ); Thu, 6 Aug 2015 07:16:25 -0400 Received: from mail-pa0-f53.google.com ([209.85.220.53]:33513 "EHLO mail-pa0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753982AbbHFLQY (ORCPT ); Thu, 6 Aug 2015 07:16:24 -0400 From: Shraddha Barke To: Benjamin Romer , David Kershner , Greg Kroah-Hartman , Neil Horman , Tim Sell , sparmaintainer@unisys.com, linux-kernel@vger.kernel.org Cc: Shraddha Barke Subject: [PATCH] Staging: unisys: visornic: Use kcalloc instead of kzalloc. Date: Thu, 6 Aug 2015 16:46:13 +0530 Message-Id: <1438859773-14931-1-git-send-email-shraddha.6596@gmail.com> X-Mailer: git-send-email 2.1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1134 Lines: 32 This patch uses kcalloc instead of kzalloc function. The change was made using Coccinelle. Signed-off-by: Shraddha Barke --- drivers/staging/unisys/visornic/visornic_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c index 2a9b055..e4a7b9b5 100644 --- a/drivers/staging/unisys/visornic/visornic_main.c +++ b/drivers/staging/unisys/visornic/visornic_main.c @@ -1843,8 +1843,8 @@ static int visornic_probe(struct visor_device *dev) goto cleanup_netdev; } - devdata->rcvbuf = kzalloc(sizeof(struct sk_buff *) * - devdata->num_rcv_bufs, GFP_KERNEL); + devdata->rcvbuf = kcalloc(devdata->num_rcv_bufs, + sizeof(struct sk_buff *), GFP_KERNEL); if (!devdata->rcvbuf) { err = -ENOMEM; goto cleanup_rcvbuf; -- 2.1.0 -- 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/