From: Oscar Carter <oscar.carter@gmx.com> Date: Tue, 7 Apr 2020 16:39:15 +0000 (+0200) Subject: staging: vt6656: Remove unnecessary local variable initialization X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8d71b5e11dc3a219d5af3c9d1367fe4c998754a6;p=linux.git 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> --- diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c index 512d2a5b0b8ee..c775d97878f50 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;