diff options
author | Ajay Singh | 2018-09-25 08:23:38 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2018-09-25 20:53:57 +0200 |
commit | a944140250ce2f200d2b54fa7ec03aad4a5d6901 (patch) | |
tree | 9d8250c5e8fc1df9f254152e773ee6d6319035a2 /drivers/staging/wilc1000/wilc_spi.c | |
parent | staging: wilc1000: avoid use of 'g_spi' static variable (diff) | |
download | kernel-qcow2-linux-a944140250ce2f200d2b54fa7ec03aad4a5d6901.tar.gz kernel-qcow2-linux-a944140250ce2f200d2b54fa7ec03aad4a5d6901.tar.xz kernel-qcow2-linux-a944140250ce2f200d2b54fa7ec03aad4a5d6901.zip |
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: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wilc1000/wilc_spi.c')
-rw-r--r-- | drivers/staging/wilc1000/wilc_spi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/staging/wilc1000/wilc_spi.c b/drivers/staging/wilc1000/wilc_spi.c index 2559cf02bff7..cef127b249fb 100644 --- a/drivers/staging/wilc1000/wilc_spi.c +++ b/drivers/staging/wilc1000/wilc_spi.c @@ -838,12 +838,9 @@ static int wilc_spi_init(struct wilc *wilc, bool resume) return 1; } - memset(spi_priv, 0, sizeof(struct wilc_spi)); - /* * configure protocol */ - spi_priv->crc_off = 0; /* * TODO: We can remove the CRC trials if there is a definite |