Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4061459ybi; Tue, 18 Jun 2019 11:05:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqxITnRMb77sECEjzPVhX+8cGCoMIvEZQw5tm6oW1Z5+40kxfjEbnTlJ2NyT+Ss6SkqpqOPE X-Received: by 2002:a17:902:b7c1:: with SMTP id v1mr22246457plz.85.1560881103265; Tue, 18 Jun 2019 11:05:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560881103; cv=none; d=google.com; s=arc-20160816; b=QynWIpwoQFeY4mX0K+QYdZlDWLugz8tIjfhr9F1Ofwyarn4Xr08visHzPZstIDQCeW ZNL5W8eo7vIjenfVQLUjpQq4LiAYajtQcqfE99IWT/S4I6PUwgV5Fw4ccngRiShx6wpS dB3VHxdfUEkMeYS/6Bx/LSBOGydLaIACmmcsy933V+j8ojMoHUUWJwHfzX+29BKMer4X 8fQDenwwtRVaqhvjZVknWZqhQEEpt1+J4vTuiznWfNAN30dezZdDM98VlcwkPoGkTy06 ibW2AshOFx39rBDl/TPtvzOJW+BvBa6srNati0XyAwsZbfWeql5Cmus6MzoRtSdmKeJn yEFg== 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=rVGH4kgsuXcbNSFNao8ZqGI4Q+bUa7JZsKDeO5LRYIs=; b=qPuHWxEqfyPYXyJYW4k0mqPcycG/ngeCkd8hUbIWE0JzLzLKuNV9lbh4iveXk5dQkh DmFDiKM8BHppRle8S6h1cKxGOMRXuNuEXuVyA2krUZALqJWZdT2fzIKFXgOGAGnXMJFx k4QwErSTpcH1mIYtohciLmi6WEunNUqZTv86qv3jbwJc7aphcZuH+mLt+UCFWb+0quaV zTXbPCFD4O218IUH+GIY2mzXqUJjfUOxx9CNvTMf3+furMEHJPUBnakAAvF5WDUN12FP Iq4UsjL2Rn0yYmZ5yPFQtCoTB1pGKn7drqBrcrYbJowQUL9L4yirq21SewE4rNgbGaRW h0ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MiXxaK17; 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 k14si787324pgm.230.2019.06.18.11.04.47; Tue, 18 Jun 2019 11:05:03 -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=MiXxaK17; 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 S1730099AbfFRSEh (ORCPT + 99 others); Tue, 18 Jun 2019 14:04:37 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35217 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729337AbfFRSEg (ORCPT ); Tue, 18 Jun 2019 14:04:36 -0400 Received: by mail-pg1-f195.google.com with SMTP id s27so8122529pgl.2 for ; Tue, 18 Jun 2019 11:04:36 -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=rVGH4kgsuXcbNSFNao8ZqGI4Q+bUa7JZsKDeO5LRYIs=; b=MiXxaK17hq9pXQesf9RsuWynYdoYHHjZ2W/JdW138tleLdBC4mmTA3+/yunFt4ayVZ oeOwYHUKbl7zjyBR7iFNBu2xBJ3B2SApRa5/F0DXE+ZVBBQ5rHjUuLKa72A0GdqgJDX7 JPYjj15VN3QBaRuvMP1wLt2KmOkYbKeIRHuNfm8P+aW5EIh8UYC7EAm7aa8ibq+wf/Hu Bo65TKZksIGrLHsyrRJIecdgwD3fR/QHteGkyBKCjzF8zjuyYyxJNkiVJgqbfelWgYSG XYE28LVx9ONz6B/lkm6Y3Hq3CdMl/oFKK3HmrAWrzmr6FphFO70oDEYJ2cgRTwUjKN0W ZtLQ== 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=rVGH4kgsuXcbNSFNao8ZqGI4Q+bUa7JZsKDeO5LRYIs=; b=Vc0KPAZ5ywSWMYhJglPJCXe97azC+RbXsg/sYFExjkk1lfK+O9sMKTGbeN60+IBAHx ACjVA8xt/KJfdytPcGYKloDlJZ63SalzWHAI7te2QE9bklfR+DAqwSn5cOHb8zAY7iTy slS80QRlPslf5XXhCczq50Q9m7zvYXBMpP0Y+qdcSwpHykGDvFRvzDGJrqYVAN+xYDLJ zwN7PJG6dvsMR0W4sh2wiSkY6Kng6zk/N/qwK4VYXRsc983KZgiP+esjYYJeq3fosha+ TO0oKtEt+wVszx2gdavOFyNMRzaso4wZcW5djNBkfGpF6lcBpABf+GbchrTEalr4O5Js TFaA== X-Gm-Message-State: APjAAAXEjmlw2ygMoBwcFYPzJwV7V+DbT1va5WgDjuYUFlGSdzlONc/G QDsRQKOgNO5+qThaa+WyT38= X-Received: by 2002:a17:90a:a09:: with SMTP id o9mr6429751pjo.95.1560881076294; Tue, 18 Jun 2019 11:04:36 -0700 (PDT) Received: from hari-Inspiron-1545 ([183.83.92.187]) by smtp.gmail.com with ESMTPSA id v185sm6789458pfb.14.2019.06.18.11.04.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Jun 2019 11:04:35 -0700 (PDT) Date: Tue, 18 Jun 2019 23:34:31 +0530 From: Hariprasad Kelam To: Greg Kroah-Hartman , Hildo Guillardi =?iso-8859-1?Q?J=FAnior?= , Hariprasad Kelam , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: rtl8192e: rtllib_module: Remove redundant memset Message-ID: <20190618180431.GA8170@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/rtl8192e/rtllib_module.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib_module.c b/drivers/staging/rtl8192e/rtllib_module.c index bb13b1d..64d9fee 100644 --- a/drivers/staging/rtl8192e/rtllib_module.c +++ b/drivers/staging/rtl8192e/rtllib_module.c @@ -83,7 +83,6 @@ struct net_device *alloc_rtllib(int sizeof_priv) return NULL; } ieee = (struct rtllib_device *)netdev_priv_rsl(dev); - memset(ieee, 0, sizeof(struct rtllib_device) + sizeof_priv); ieee->dev = dev; err = rtllib_networks_allocate(ieee); -- 2.7.4