summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-14 15:35:02 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-16 13:41:00 +0200
commit7f3115fbfea18d20d3421a192be510cbccbaf9f6 (patch)
treea3a6f4566a5bf63b64ae312c0d352f1f90462edd
parent5a78455625a345933ed35dd3370fe5b85d44ed11 (diff)
staging: vt6656: remove redundant assignment to variable ed_inx
The variable ed_inx 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> Link: https://lore.kernel.org/r/20200414143502.237803-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6656/baseband.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c
index 13b91d7fc6db..d21a9cf0afe5 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -574,7 +574,7 @@ void vnt_update_pre_ed_threshold(struct vnt_private *priv, int scanning)
const struct vnt_threshold *threshold = NULL;
u8 length;
u8 cr_201, cr_206;
- u8 ed_inx = priv->bb_pre_ed_index;
+ u8 ed_inx;
switch (priv->rf_type) {
case RF_AL2230: