]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca59d3ea10f33591ca4246e1a07590bb9ffa6354
tree0a99a98a66327ef6fa423ea28b2554a55f1a96f1
parent702721b5e44013d18b9d7f743e464fca6f162ef9
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