]> git.baikalelectronics.ru Git - kernel.git/commit
rtl8xxxu: fix uninitialized return value in ret
authorColin Ian King <colin.king@canonical.com>
Thu, 14 Apr 2016 20:37:07 +0000 (16:37 -0400)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 15 Apr 2016 18:38:03 +0000 (21:38 +0300)
commitc0e03e8fd3671ea227ce6c52b352485156ffb325
treedc8fdabf7841446b5cfdb1be9c398b7e93b03387
parent26bcf3dcca27273f1ebb514c2a2118c2f85f3d83
rtl8xxxu: fix uninitialized return value in ret

several functions are not initializing a return status in ret
resulting in garbage to be returned instead of 0 for success.
Currently, the calls to these functions are not checking the
return, however, it seems prudent to return the correct status
in case they are to be checked at a later date.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu.c