Messages in this thread Patch in this message | | | From | Oscar Carter <> | Subject | [PATCH 3/3] staging: vt6656: Remove unnecessary local variable initialization | Date | Sat, 4 Apr 2020 16:14:00 +0200 |
| |
Don't initialize the rate variable as it is set a few lines later.
Signed-off-by: Oscar Carter <oscar.carter@gmx.com> --- drivers/staging/vt6656/baseband.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vt6656/baseband.c b/drivers/staging/vt6656/baseband.c index a785f91c1566..04393ea6287d 100644 --- a/drivers/staging/vt6656/baseband.c +++ b/drivers/staging/vt6656/baseband.c @@ -135,7 +135,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 >= ARRAY_SIZE(vnt_frame_time)) return 0; -- 2.20.1
| |