wl18xx: add checks on wl18xx_top_reg_write() return value
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 26 Jun 2017 23:06:19 +0000 (18:06 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Jun 2017 18:18:40 +0000 (21:18 +0300)
commit059c98599b1ab1e2e479e1f4617948d4c2a32b84
tree2d3a077593c9bbb6397e0b7d23eaeaf92b61d223
parent69551f5f370cc20342fab17ca54716b6ec7e332d
wl18xx: add checks on wl18xx_top_reg_write() return value

Check return value from call to wl18xx_top_reg_write(),
so in case of error jump to goto label out and return.

Also, remove unnecessary value check before goto label out.

Addresses-Coverity-ID: 1226938
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ti/wl18xx/main.c