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)
commit48c6b5c9c1180b7f8b35edeaef9b3aa3e3b6c9d5
tree2333df8a6d2cbec45d2fd555507b205f9fa34282
parente1fd7ceec194225a822760a40dfa73efdd59881b
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: 16d3bb7b2f37 ("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