wl3501_cs: remove redundant variable rc
authorColin Ian King <colin.king@canonical.com>
Fri, 5 Jul 2019 10:37:32 +0000 (11:37 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jul 2019 11:45:24 +0000 (14:45 +0300)
commitc032461936de82a3f4108cacc7c3d1b204c42eef
tree0a99a98a66327ef6fa423ea28b2554a55f1a96f1
parent4c8a468510196ff0a2c5ea28e8c27cd543a95861
wl3501_cs: remove redundant variable rc

The variable rc is being initialized with a value that is never
read and it is being updated later with a new value that is returned.
The variable is redundant and can be replaced with a return 0 as
there are no other return points in this function.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/wl3501_cs.c