]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Remove excessive check in _rtl_ps_inactive_ps()
authorDenis Efremov <efremov@linux.com>
Wed, 25 Sep 2019 20:58:58 +0000 (23:58 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 1 Oct 2019 09:20:59 +0000 (12:20 +0300)
commitf05692f94e925bffddda13912170fcfc4963db74
treee62bb9192efb1c30a4777a0f9628f69ec38ca2ca
parent23981ed908dbafdf21e021cce70a38d4e6b57564
rtlwifi: Remove excessive check in _rtl_ps_inactive_ps()

There is no need to check "rtlhal->interface == INTF_PCI" twice in
_rtl_ps_inactive_ps(). The nested check is always true. Thus, the
expression can be simplified.

Signed-off-by: Denis Efremov <efremov@linux.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/ps.c