[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1453753336-20230-1-git-send-email-hugo.camboulive@gmail.com>
Date: Mon, 25 Jan 2016 20:22:16 +0000
From: Hugo Camboulive <hugo.camboulive@...il.com>
To: benjamin.romer@...sys.com, david.kershner@...sys.com,
gregkh@...uxfoundation.org, Timothy.Sell@...sys.com,
nhorman@...hat.com
Cc: sparmaintainer@...sys.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org,
Hugo Camboulive <hugo.camboulive@...il.com>
Subject: [PATCH] staging: unisys: visornic: remove useless memset
alloc_etherdev() calls alloc_netdev_mqs(), which
already uses kzalloc/vzalloc.
This clears a sparse warning :
drivers/staging/unisys/visornic/visornic_main.c:1366:15: warning: memset with byte count of 1460112
Signed-off-by: Hugo Camboulive <hugo.camboulive@...il.com>
---
drivers/staging/unisys/visornic/visornic_main.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/staging/unisys/visornic/visornic_main.c b/drivers/staging/unisys/visornic/visornic_main.c
index 0519470..d894815 100644
--- a/drivers/staging/unisys/visornic/visornic_main.c
+++ b/drivers/staging/unisys/visornic/visornic_main.c
@@ -1363,7 +1363,6 @@ devdata_initialize(struct visornic_devdata *devdata, struct visor_device *dev)
{
if (!devdata)
return NULL;
- memset(devdata, '\0', sizeof(struct visornic_devdata));
devdata->dev = dev;
devdata->incarnation_id = get_jiffies_64();
return devdata;
--
2.7.0
Powered by blists - more mailing lists