]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: Remove unnecessary code
authorMuhammad Usama Anjum <musamaanjum@gmail.com>
Thu, 8 Apr 2021 20:44:57 +0000 (01:44 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Apr 2021 14:15:00 +0000 (16:15 +0200)
commit00f5a26bf6a37104ed34516c5e0fc8d4c380e11b
tree798314e5031fd055856c63feaea6c63a55d4424b
parent42b4fdc3032069f8382b3b787975a0e4526cd029
staging: rtl8723bs: Remove unnecessary code

The same code is executed when the condition "!show_errors" is true or
false. Remove the if condition from here. The original intension of this
condition was to not to report any error logs if condition was true. But
this driver doesn't has those logs added. So this if condition can be
removed.

Signed-off-by: Muhammad Usama Anjum <musamaanjum@gmail.com>
Addresses-Coverity: ("Same code execution")
Link: https://lore.kernel.org/r/20210408204457.GA3079308@LEGION
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ieee80211.c