Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1305505

[PATCH] [media] netup_unidvb: Remove a useless memset

Path csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod
From Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Newsgroups linux.kernel
Subject [PATCH] [media] netup_unidvb: Remove a useless memset
Date Sun, 10 Jan 2016 08:30:01 +0100
Message-ID <qPiBP-14T-3@gated-at.bofh.it> (permalink)
X-Me-Helo localhost.localdomain
X-Me-Auth Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI=
X-Me-Date Sun, 10 Jan 2016 08:20:22 +0100
X-Me-IP 92.140.155.152
X-Mailer git-send-email 2.5.0
X-Antivirus avast! (VPS 160109-1, 09/01/2016), Outbound message
X-Antivirus-Status Clean
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 22
Organization linux.* mail to news gateway
X-Original-Cc linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET <christophe.jaillet@wanadoo.fr>
X-Original-Date Sun, 10 Jan 2016 08:20:16 +0100
X-Original-Message-ID <1452410416-6362-1-git-send-email-christophe.jaillet@wanadoo.fr>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1305505

Show key headers only | View raw


This memory is allocated using kzalloc so there is no need to call
memset(..., 0, ...)

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
---
 drivers/media/pci/netup_unidvb/netup_unidvb_core.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
index 525ebfe..d919080 100644
--- a/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
+++ b/drivers/media/pci/netup_unidvb/netup_unidvb_core.c
@@ -774,7 +774,6 @@ static int netup_unidvb_initdev(struct pci_dev *pci_dev,
 
 	if (!ndev)
 		goto dev_alloc_err;
-	memset(ndev, 0, sizeof(*ndev));
 	ndev->old_fw = old_firmware;
 	ndev->wq = create_singlethread_workqueue(NETUP_UNIDVB_NAME);
 	if (!ndev->wq) {
-- 
2.5.0

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH] [media] netup_unidvb: Remove a useless memset Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-01-10 08:30 +0100
  Re: [PATCH] [media] netup_unidvb: Remove a useless memset Joe Perches <joe@perches.com> - 2016-01-10 08:30 +0100

csiph-web