Re: rtlwifi: Remove excessive check in _rtl_ps_inactive_ps()
From: Markus Elfring
Date: Thu Sep 26 2019 - 14:12:28 EST
> +++ b/drivers/net/wireless/realtek/rtlwifi/ps.c
> @@ -161,8 +161,7 @@ static void _rtl_ps_inactive_ps(struct ieee80211_hw *hw)
> if (ppsc->inactive_pwrstate == ERFON &&
> rtlhal->interface == INTF_PCI) {
> if ((ppsc->reg_rfps_level & RT_RF_OFF_LEVL_ASPM) &&
Can it make sense to reduce the nesting level for these condition checks
besides the suggested deletion of duplicate source code?
Regards,
Markus