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>
This commit is contained in:
Ajay Singh
2018-09-25 11:53:38 +05:30
committed by Greg Kroah-Hartman
parent 110f4b755e
commit a944140250
2 changed files with 1 additions and 6 deletions

View File

@@ -689,10 +689,8 @@ static int sdio_init(struct wilc *wilc, bool resume)
int loop, ret;
u32 chipid;
if (!resume) {
memset(sdio_priv, 0, sizeof(struct wilc_sdio));
if (!resume)
sdio_priv->irq_gpio = wilc->dev_irq_num;
}
/**
* function 0 csa enable

View File

@@ -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