]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
libertas: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Fri, 5 Jul 2019 08:17:34 +0000 (09:17 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Jul 2019 11:44:25 +0000 (14:44 +0300)
The variable ret is being initialized with a value that is never
read and it is being updated later with a new value. The
initialization is redundant and can be removed.

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/marvell/libertas/main.c

index 5968852b65a78dd558d24ac9e0f1d7194f5bf843..2233b59cdf44480cddeef10af0ee43fb6cb3cf8e 100644 (file)
@@ -1046,7 +1046,7 @@ int lbs_rtap_supported(struct lbs_private *priv)
 int lbs_start_card(struct lbs_private *priv)
 {
        struct net_device *dev = priv->dev;
-       int ret = -1;
+       int ret;
 
        /* poke the firmware */
        ret = lbs_setup_firmware(priv);