From patchwork Mon May 30 02:54:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirtika Ruchandani X-Patchwork-Id: 9140189 X-Patchwork-Delegate: johannes@sipsolutions.net Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 72D1B60755 for ; Mon, 30 May 2016 02:55:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 683221FF6C for ; Mon, 30 May 2016 02:55:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D55420120; Mon, 30 May 2016 02:55:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E95C71FF6C for ; Mon, 30 May 2016 02:55:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753609AbcE3CzG (ORCPT ); Sun, 29 May 2016 22:55:06 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:35998 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753423AbcE3CzC (ORCPT ); Sun, 29 May 2016 22:55:02 -0400 Received: by mail-pa0-f66.google.com with SMTP id fg1so19890798pad.3; Sun, 29 May 2016 19:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wLcGQjZtWfkrOxsbx8MDw1JiCXvf1FmwoxuCqPiqtQw=; b=AI/eT44eafLLkUbNscbK9VqFHp6zGovFuNgW6u3mf2Jsc3siz12GlLgh1j/C3aO0rh 7+OYRp6VJPXHBX19Ktxn8SejFnuY4dnBEh6BuRlR1+/l6vu6mW+XdurzDslo+ROSKrKK vmkCvQI1+dFfV0lPk78TAf51ghxYaiyO4O66ASm8VffXsHNth8XGaD9Z7TQWUc8/RZla sSjDZGy5HgNvm9wvLedls2cMK4z4rj8STKxadAeuBAEI0U58yk2ZHWwJ/1ObJCKvmPsP oLsK3CI+sPuS7xjIRmAInmFTWI5DSL2+j/3BwLe1JGHba3qwJmEUmGKvcsgLikozaBNS HWQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wLcGQjZtWfkrOxsbx8MDw1JiCXvf1FmwoxuCqPiqtQw=; b=fx3oow1ahLd2l79z31Y4lxG8Dz3qREIeB1k6oZPqMwELCoTdDq44h96PebBolkkY2F fdnJ0sJgxbvH8/jzI71Iw5AMLCJ0cDNKpRpc+DrDJMlWhd+XaNRuvAz6u5Z92yUePvRk 9WVgDd8jpT6eCP5CrpHNir8D1kRrfeIlH/lS1+9yA+VqZoWRpUv8wwyUtLjr7SbeHxQA W1igTo6mX4aNuXqMrnpynFAA8fb6dDuurfh0fNp9dMerqr5V7nNVcYv4TMqD2JeEwYGK UL0EKfZ5Ohr+SWaSTTkGbigf/cz+plaOhr4xfn2w1wllcetoFpQg3PWxoU+GzMB/I9XF dDbQ== X-Gm-Message-State: ALyK8tJ4TpGvAPkQwo3MELp2B97yl6wnRdMsxMbtXdqxa+FoSJp+v+RvtLyM8qQOo2Ld6Q== X-Received: by 10.66.127.47 with SMTP id nd15mr42407445pab.84.1464576902041; Sun, 29 May 2016 19:55:02 -0700 (PDT) Received: from google.com ([2620:0:1000:1301:9988:7148:7bd6:87cc]) by smtp.gmail.com with ESMTPSA id e2sm28511986pfd.20.2016.05.29.19.55.00 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 May 2016 19:55:01 -0700 (PDT) Date: Sun, 29 May 2016 19:54:52 -0700 From: Kirtika Ruchandani To: Johannes Berg Cc: linux-wireless@vger.kernel.org, ruchandani.tina@gmail.com, netdev@vger.kernel.org, Julian.Calaby@gmail.com Subject: [PATCH v2 10/10] nl80211: Prefer kcalloc over kzalloc Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl warning - "prefer kcalloc over kzalloc with multiply" Signed-off-by: Kirtika Ruchandani Reviewed-by: Julian Calaby --- net/wireless/nl80211.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.8.0.rc3.226.g39d4020 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 46757af..2964406 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -9482,7 +9482,7 @@ static int nl80211_parse_wowlan_nd(struct cfg80211_registered_device *rdev, struct nlattr **tb; int err; - tb = kzalloc(NUM_NL80211_ATTR * sizeof(*tb), GFP_KERNEL); + tb = kcalloc(NUM_NL80211_ATTR, sizeof(*tb), GFP_KERNEL); if (!tb) return -ENOMEM;