libertas: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Wed, 2 Oct 2019 10:15:17 +0000 (11:15 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 4 Oct 2019 13:46:23 +0000 (16:46 +0300)
The variable ret is being assigned a value that is never read and is
being re-assigned a little later on. The assignment is redundant and hence
can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/mesh.c

index 2747c957d18c95e4ccfdb7004c3a48ea9b41bed9..44c8a550da4c7de6bbe5afa4b84f58cd02cbb7c0 100644 (file)
@@ -1003,7 +1003,6 @@ static int lbs_add_mesh(struct lbs_private *priv)
        if (priv->mesh_tlv) {
                sprintf(mesh_wdev->ssid, "mesh");
                mesh_wdev->mesh_id_up_len = 4;
-               ret = 1;
        }
 
        mesh_wdev->netdev = mesh_dev;