mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-01 00:36:40 +09: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:
committed by
Greg Kroah-Hartman
parent
110f4b755e
commit
a944140250
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user