mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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:
parent
110f4b755e
commit
a944140250
2 changed files with 1 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue