]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: remove unncessary ternary operator
authorMichael Straube <straube.linux@gmail.com>
Tue, 5 Apr 2022 06:08:12 +0000 (08:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Apr 2022 14:10:32 +0000 (16:10 +0200)
commit7c194098f1a894f06992a3ce6286bd3b4b03deb0
treef6996b017969a4b700bb2793d990bcda26db8ea1
parent0a10801065b4962adbc9e928e93cf1b281c7f9f5
staging: r8188eu: remove unncessary ternary operator

There are some uses of ternary operator where it explicitly sets
true or false but the condition already evaluates to true or false.
In this cases the ternary operator is redundant and can be removed.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20220405060813.8448-2-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_p2p.c
drivers/staging/r8188eu/core/rtw_pwrctrl.c
drivers/staging/r8188eu/core/rtw_sta_mgt.c
drivers/staging/r8188eu/core/rtw_wlan_util.c
drivers/staging/r8188eu/hal/hal_com.c
drivers/staging/r8188eu/hal/odm_HWConfig.c
drivers/staging/r8188eu/include/HalVerDef.h
drivers/staging/r8188eu/os_dep/osdep_service.c