]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8e64ad50cc62bc897fc370ec9f48860925dcca0a
treea3c2b2e6cd743f24fa314b094ad4f357ef34996a
parentfb1e4b829538fb3f2ea411d294ce1f06dd8e1fa5
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