diff options
| author | Ping-Ke Shih <[email protected]> | 2024-09-13 00:28:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2024-09-13 05:31:56 +0000 |
| commit | ea0fca507967d2d4354f97f688cabddcf1dc5f9a (patch) | |
| tree | c7e747173f5d823dcea3ffac49ce868e8d3290a1 /drivers/pci/controller/pci-host-generic.c | |
| parent | staging: rtl8723bs: remove unused cnt from recv_func() (diff) | |
| download | kernel-ea0fca507967d2d4354f97f688cabddcf1dc5f9a.tar.gz kernel-ea0fca507967d2d4354f97f688cabddcf1dc5f9a.zip | |
staging: rtl8723bs: remove unused 'poll_cnt' from rtw_set_rpwm()
The 'poll_cnt' is used to assist in polling hardware state. Current code
uses jiffies to determine timeout, so removing this value is safe.
Otherwise, clang warns:
core/rtw_pwrctrl.c:288:6: warning:
variable 'poll_cnt' set but not used [-Wunused-but-set-variable]
288 | u8 poll_cnt = 0;
| ^
Signed-off-by: Ping-Ke Shih <[email protected]>
Tested-by: Philipp Hortmann <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions
