staging: vt6656: remove redundant assignment to variable ed_inx
Subsystems (2)
PATCH 1/1 staging: vt6656: remove redundant assignment to variable ed_inx
From: Colin Ian King <[email protected]>
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 <[email protected]>
--- drivers/staging/vt6656/baseband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/vt6656/baseband.c +1 -1
@@ -655,7 +655,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 :
Signature · 1 line
2.25.1