Commit 5440b931 authored by Michael Straube's avatar Michael Straube Committed by Greg Kroah-Hartman

staging: r8188eu: remove unnecessary initialization

The variable 'retsig' in odm_signal_scale_mapping() is set in the
function before it returns, so it is not needed to initialize it.

Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: default avatarMichael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220911161949.11293-4-straube.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 971193b4
...@@ -15,7 +15,7 @@ static u8 odm_QueryRxPwrPercentage(s8 AntPower) ...@@ -15,7 +15,7 @@ static u8 odm_QueryRxPwrPercentage(s8 AntPower)
static s32 odm_signal_scale_mapping(struct odm_dm_struct *dm_odm, s32 currsig) static s32 odm_signal_scale_mapping(struct odm_dm_struct *dm_odm, s32 currsig)
{ {
s32 retsig = 0; s32 retsig;
if (currsig >= 51 && currsig <= 100) if (currsig >= 51 && currsig <= 100)
retsig = 100; retsig = 100;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment