staging: r8188eu: simplify if-else statement
authorMichael Straube <straube.linux@gmail.com>
Tue, 29 Mar 2022 20:21:39 +0000 (22:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 05:33:47 +0000 (07:33 +0200)
commita90b92ede242d07801c238bcfe4a28382a8219cb
treea3c2b2e6cd743f24fa314b094ad4f357ef34996a
parent2ac32870ebf824ff493bd1f2aaf522141fc2e150
staging: r8188eu: simplify if-else statement

Simplify a nested if-else statement to a single if-else statement in
rtw_set_threshold(). This improves readability and allows us to
remove the local variable threshold.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220329202141.7028-7-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_mlme.c