]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: Remove unused parameter from rtl_ps_set_rf_state()
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 25 Jun 2016 18:37:42 +0000 (13:37 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 5 Jul 2016 14:31:41 +0000 (17:31 +0300)
commit80c656bcb9d3045174ae21b5c96ce9de0b260056
treeebb7405747a9ae96854cbd7d1c5c69939bcbde1d
parent912cd75f25969b070e02c227e3c44543b06218de
rtlwifi: Remove unused parameter from rtl_ps_set_rf_state()

Commit 4f43b0795cb6 ("rtlwifi: rtl8192cu: Remove unused parameter") reworked
this routine. Those changes were later reverted by commit fa55e949219a
("rtlwifi: Update power-save routines for 062814 driver").

There were two changes in commit 4f43b0795cb6. The first of these removed
a parameter from rtl_ps_set_rf_state() that was always false. This is the
change that is restored in the current patch. A second change that reworked
the locking is still being analyzed.

In addition to removing the unused parameter, there is no need for
rtl_ps_set_rf_state() to be exported.

Reported-by: Pavel Andrianov <andrianov@ispras.ru>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Pavel Andrianov <andrianov@ispras.ru>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtlwifi/ps.c
drivers/net/wireless/realtek/rtlwifi/ps.h