[PATCH 0/3] staging: vt6656: Cleanup of the vnt_get_frame_time function

From: Oscar Carter
Date: Sat Apr 04 2020 - 10:14:38 EST


This patch series makes a cleanup of the vnt_get_frame_time function.

The first patch removes the define RATE_54M and changes it for the
ARRAY_SIZE macro. This way avoid possibles issues if the size of the
vnt_frame_time array change in the future but not change accordingly the
RATE_54M constant.

The second patch makes use of the define RATE_11M instead of a magic
number.

The third patch remove unnecessary local variable initialization.

Oscar Carter (3):
staging: vt6656: Use ARRAY_SIZE instead of define RATE_54M
staging: vt6656: Use define instead of magic number for tx_rate
staging: vt6656: Remove unnecessary local variable initialization

drivers/staging/vt6656/baseband.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

--
2.20.1