summaryrefslogtreecommitdiff
path: root/drivers/staging/vt6656
diff options
context:
space:
mode:
authorOscar Carter <oscar.carter@gmx.com>2020-04-07 18:39:15 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-13 14:55:33 +0200
commit8d71b5e11dc3a219d5af3c9d1367fe4c998754a6 (patch)
tree8d55f1dfa386b655322868dab5d9a2918655efdc /drivers/staging/vt6656
parent2da5445be1da5cf125359a173eff7df906ab2bd8 (diff)
staging: vt6656: Remove unnecessary local variable initialization
Don't initialize the rate variable as it is set a few lines later. Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Oscar Carter <oscar.carter@gmx.com> Link: https://lore.kernel.org/r/20200407163915.7491-3-oscar.carter@gmx.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656')
-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 512d2a5b0b8e..c775d97878f5 100644
--- a/drivers/staging/vt6656/baseband.c
+++ b/drivers/staging/vt6656/baseband.c
@@ -214,7 +214,7 @@ unsigned int vnt_get_frame_time(u8 preamble_type, u8 pkt_type,
{
unsigned int frame_time;
unsigned int preamble;
- unsigned int rate = 0;
+ unsigned int rate;
if (tx_rate > RATE_54M)
return 0;