]> git.baikalelectronics.ru Git - kernel.git/commit
rsi_91x: fix uninitialized variable
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 26 Apr 2018 13:13:24 +0000 (08:13 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 30 Apr 2018 10:33:44 +0000 (13:33 +0300)
commit081e0e95b3a43ed5e22d9ab5b8ae229070c4de14
tree2333df8a6d2cbec45d2fd555507b205f9fa34282
parentd4c0197ee299b21d36b1c9d7f2426b57a07ee404
rsi_91x: fix uninitialized variable

There is a potential execution path in which variable ret is returned
without being properly initialized previously.

Fix this by storing the value returned by function
rsi_usb_master_reg_write into _ret_.

Addresses-Coverity-ID: 1468407 ("Uninitialized scalar variable")
Fixes: 96e272a0b506 ("rsi: disable fw watchdog timer during reset")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_usb.c