diff options
author | John Whitmore <johnfwhitmore@gmail.com> | 2018-08-03 01:01:55 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-05 16:21:06 +0200 |
commit | a2351af9f562a77480ca91c970ea151ceba47c36 (patch) | |
tree | 1f9595deba7b7a50b72cc673b68cd288fde13dcd /drivers/staging/rtl8192u/r8192U_dm.h | |
parent | staging:rtl8192u: Remove debug member from structures - Style (diff) | |
download | linux-dev-a2351af9f562a77480ca91c970ea151ceba47c36.tar.xz linux-dev-a2351af9f562a77480ca91c970ea151ceba47c36.zip |
staging:rtl8192u: Remove member variable rx_gain_range_max - Style
The structure 'dig' defines a member variable, (rx_gain_range_max)
which is initialised to the value 'DM_DIG_MAX', (a defined constant).
The variable is then used to test and set another variable. Since
the member rx_gain_range_max is never assigned any other value then
the constant 'DM_DIG_MAX' the code might as well simply use that
constant, rather the a member variable set to that constant.
The member variable has been removed and the constant used directly
in the code. This is a coding style change which should not impact
runtime code execution.
Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/r8192U_dm.h')
-rw-r--r-- | drivers/staging/rtl8192u/r8192U_dm.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/r8192U_dm.h b/drivers/staging/rtl8192u/r8192U_dm.h index bc736f2f5a5c..f3e3db18fdd0 100644 --- a/drivers/staging/rtl8192u/r8192U_dm.h +++ b/drivers/staging/rtl8192u/r8192U_dm.h @@ -118,7 +118,6 @@ struct dig { u32 cur_ig_value; u8 backoff_val; - u8 rx_gain_range_max; u8 rx_gain_range_min; bool initialgain_lowerbound_state; |