Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4081351ybi; Tue, 18 Jun 2019 11:25:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/hEqULswmMYyY8ty6RmOtHkddTNT15ghQlOZgyGxOmtmyFH2Sjc3udIAbTHmKjVXVBKoG X-Received: by 2002:a63:c09:: with SMTP id b9mr3879385pgl.241.1560882358069; Tue, 18 Jun 2019 11:25:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560882358; cv=none; d=google.com; s=arc-20160816; b=vNPut3M0gEegsHslLe/6KZAwmhoRxRD5oPdq+tI/WbId+htsGbaSMlLqsea07+FmXy xfyChzS9dD/XWg1bzVKATMOZppAoTt0KFPRtGIAaFJA9mtspRfNhTLhZpGmfhCB3ZLAe Vz2/T5JhOBU/pOj4ARyHapYkbB9mqRvjQn1FQc+Z8LMiLadQqhg4uhrvcaQg/2omb02M 4qsycTMNdHmVmuRH3YaayCPIHJYdv8+XAH0+W6kOlGssVe05AyRCaKqjnjbOd3RjCvit Cvbfak7IAy1JBfh6ETFY5rn2WQGr9vWercTN9SWP6iSR+m6svkO0tFWnPX01GQyy0F/J cbeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:to:from:date:dkim-signature; bh=ZWfAOAxoVbPij4WvtmFyrhlxSXKOQxDJzGR7xW1Qhl4=; b=ITNnXW5daUTXkVdIYa5kouAlR7hpXL+x9ok/r1PqTcSckQTyD4WKcv8PwB7EJpmISi 5OXpkG1HcaSB7wnVSv76gPwQ4VLE686Ll7c74JNyw6NtwvUccrbRSbkQsjM8WvO12975 reu8oeu1ci4qt9LNKsjXLpyxuXo3cPVZ3LDAYVERJeJHVYmAtL2WWDAyHKSIzg3Se/PM 6lpygMqNHmDeVw9/mZsdBMTE3fWo0lm66D6J3DS6CG4TGsfSA1g8tfiLcBcL36X84VU3 6sJFzamnDtVJYU5cf8e2PCa3OLoMV7AffJpBNbxPcYvyHkAWFsraHgoZiDj/dYWsSMwZ eqMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rDDlyAvv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n22si763723pgj.474.2019.06.18.11.25.42; Tue, 18 Jun 2019 11:25:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rDDlyAvv; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730239AbfFRSZO (ORCPT + 99 others); Tue, 18 Jun 2019 14:25:14 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:35797 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729943AbfFRSZO (ORCPT ); Tue, 18 Jun 2019 14:25:14 -0400 Received: by mail-pl1-f194.google.com with SMTP id p1so6060002plo.2; Tue, 18 Jun 2019 11:25:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=ZWfAOAxoVbPij4WvtmFyrhlxSXKOQxDJzGR7xW1Qhl4=; b=rDDlyAvvtsHMAO0xf644R8e0EQPSxem326pnG6VLJloD9q3ZMMlpOAT4t7gkgQdhM2 W0iC9W2W+DXCoN3BdpkExKZC8QJVpYhOF4C7WGszSQu+nbKhuZn/4yNEI2JzFzWuCdBC 2Y4U40rJJVg210CmG/P2ljebo+D3yeS778WgJ/Plevek8DAFFhEv1kpeb21htZJO60FZ 6X2XaSN+NQnjAd1q9XviYtXbTzX56n9Ro6AVEd8VUeOkvbXTb1Pe0FO2u3bBhX3YsMk0 DfjjvIYO5U1An9bvFbST4qIVrqRdK2r8SeX9cAG5ewyr/FdHqls6r2bgRd2Lxi20sAiH VP+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=ZWfAOAxoVbPij4WvtmFyrhlxSXKOQxDJzGR7xW1Qhl4=; b=OqD+z1hzD82mjGQQzhNbwzAwR5DWmpnx03oXi29LgBRw8tcddyOBzEeIPCm5Doxowy 9IXLOBPauIB6tgqwt+PHnAogrncuLjhAdr7YSZixkObN/0W/aU4ZRM5Xad8ztKwT0MTI nZZaY8LAciP17SjtYtLQGlh+zVa69/PHvcvQWqAtEPYKyvj4IzQQy8TwinaynSN93muS 4vS0CLvFUcxQhH9usHT3RL4fpvKrOsUh0mCLyuDgU5fvF04NxvbMrMSb/XQgeU1EUvK9 W18FbxOK9Li7r9s5fd1rd0sTbEILXnRPhKZWixrNZIlddzhfHzNsF7vMpSJf7qqc8ORD n/1g== X-Gm-Message-State: APjAAAXoOoeCO9MVA66kKoyBoiXC/tlEy9fqX/pLUH2VJ8Uniz7adhUT nNTlCCmyvv2SIGOv1JsqXXY= X-Received: by 2002:a17:902:b70f:: with SMTP id d15mr32734935pls.318.1560882313798; Tue, 18 Jun 2019 11:25:13 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id w14sm10510083pfn.47.2019.06.18.11.25.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 11:25:12 -0700 (PDT) Date: Tue, 18 Jun 2019 23:55:07 +0530 From: Hariprasad Kelam To: Adham Abozaeid , Ajay Singh , Greg Kroah-Hartman , linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: wilc1000: Remove redundant memset Message-ID: <20190618182506.GA9007@hari-Inspiron-1545> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org alloc_etherdev function internally calls kvzalloc . So we may not need explicit memset after this call. Signed-off-by: Hariprasad Kelam --- drivers/staging/wilc1000/wilc_netdev.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/wilc1000/wilc_netdev.c b/drivers/staging/wilc1000/wilc_netdev.c index ba78c08..c4efec2 100644 --- a/drivers/staging/wilc1000/wilc_netdev.c +++ b/drivers/staging/wilc1000/wilc_netdev.c @@ -1010,7 +1010,6 @@ int wilc_netdev_init(struct wilc **wilc, struct device *dev, int io_type, } vif = netdev_priv(ndev); - memset(vif, 0, sizeof(struct wilc_vif)); if (i == 0) { strcpy(ndev->name, "wlan%d"); -- 2.7.4