wireless: wlcore: spi: remove unnecessary variable
Subsystems (3)
PATCH 1/1 wireless: wlcore: spi: remove unnecessary variable
Remove unnecessary variable and refactor the code.
Addresses-Coverity-ID: 1365000
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/net/wireless/ti/wlcore/spi.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-)
drivers/net/wireless/ti/wlcore/spi.c +2 -5
@@ -366,17 +366,14 @@ static int __wl12xx_spi_raw_write(struct device *child, int addr,static int __must_check wl12xx_spi_raw_write (struct device *child,int addr,void *buf,size_t len,bool fixed) { -int ret; -/* The ELP wakeup write may fail the first time due to internal * hardware latency. It is safer to send the wakeup command twice to * avoid unexpected failures. */ if (addr ==HW_ACCESS_ELP_CTRL_REG ) - ret =__wl12xx_spi_raw_write (child, addr, buf, len, fixed); - ret =__wl12xx_spi_raw_write (child, addr, buf, len, fixed); +__wl12xx_spi_raw_write (child, addr, buf, len, fixed); -return ret; +return __wl12xx_spi_raw_write (child, addr, buf, len, fixed); }/**
Signature · 1 line
2.5.0
Quoted 4 lines · Gustavo A. R. Silva
Remove unnecessary variable and refactor the code.
Addresses-Coverity-ID: 1365000
Signed-off-by Gustavo A. R. Silva <[email protected]>
I'll remove "wireless:" from the prefix.
Signature · 1 line
Kalle Valo
Re: wlcore: spi: remove unnecessary variable
In reply to Gustavo A. R. SilvaQuoted 4 lines · Gustavo A. R. Silva
Remove unnecessary variable and refactor the code.
Addresses-Coverity-ID: 1365000
Signed-off-by Gustavo A. R. Silva <[email protected]>
Patch applied to wireless-drivers-next.git, thanks.
c48c281e7236 wlcore: spi: remove unnecessary variable
Signature · 3 lines
https://patchwork.kernel.org/patch/9777073/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches