Commit a9441402 authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: remove unnecessary memset in sdio_init() & wilc_spi_init()

Cleanup changes to avoid unnecessary setting 'wilc->bus_data' value to
zero as the buffer was allocated using kzalloc().
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 110f4b75
...@@ -689,10 +689,8 @@ static int sdio_init(struct wilc *wilc, bool resume) ...@@ -689,10 +689,8 @@ static int sdio_init(struct wilc *wilc, bool resume)
int loop, ret; int loop, ret;
u32 chipid; u32 chipid;
if (!resume) { if (!resume)
memset(sdio_priv, 0, sizeof(struct wilc_sdio));
sdio_priv->irq_gpio = wilc->dev_irq_num; sdio_priv->irq_gpio = wilc->dev_irq_num;
}
/** /**
* function 0 csa enable * function 0 csa enable
......
...@@ -838,12 +838,9 @@ static int wilc_spi_init(struct wilc *wilc, bool resume) ...@@ -838,12 +838,9 @@ static int wilc_spi_init(struct wilc *wilc, bool resume)
return 1; return 1;
} }
memset(spi_priv, 0, sizeof(struct wilc_spi));
/* /*
* configure protocol * configure protocol
*/ */
spi_priv->crc_off = 0;
/* /*
* TODO: We can remove the CRC trials if there is a definite * TODO: We can remove the CRC trials if there is a definite
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment