From: Hariprasad Kelam Date: Tue, 18 Jun 2019 18:25:07 +0000 (+0530) Subject: staging: wilc1000: Remove redundant memset X-Git-Tag: v5.15~5977^2~229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42203fbe73f24f276a135948cfb68749737673c9;p=platform%2Fkernel%2Flinux-starfive.git staging: wilc1000: Remove redundant memset alloc_etherdev function internally calls kvzalloc . So we may not need explicit memset after this call. Signed-off-by: Hariprasad Kelam Signed-off-by: Greg Kroah-Hartman --- 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");