summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/marvell
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2019-10-02 13:15:17 +0300
committerKalle Valo <kvalo@codeaurora.org>2019-10-04 16:46:23 +0300
commit60b5b49f6a6ed3a5dd5e1b4b72b8c792387a0f8c (patch)
tree2781c8360b5dd8d71940b4c3e8de3a62e13de55a /drivers/net/wireless/marvell
parent3b1e0a7bdfeedbde49b8d424aeb88ac3c0cf8182 (diff)
downloadlinux-60b5b49f6a6ed3a5dd5e1b4b72b8c792387a0f8c.tar.xz
libertas: remove redundant assignment to variable ret
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>
Diffstat (limited to 'drivers/net/wireless/marvell')
-rw-r--r--drivers/net/wireless/marvell/libertas/mesh.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wireless/marvell/libertas/mesh.c b/drivers/net/wireless/marvell/libertas/mesh.c
index 2747c957d18c..44c8a550da4c 100644
--- a/drivers/net/wireless/marvell/libertas/mesh.c
+++ b/drivers/net/wireless/marvell/libertas/mesh.c
@@ -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;