staging: r8188eu: Make rtw_signal_stat_timer_hdl a static function
PATCH v2 1/1 staging: r8188eu: Make rtw_signal_stat_timer_hdl a static function
Make rtw_signal_stat_timer_hdl a static function instead of a global function.
Signed-off-by Chang Yu <[email protected]>
---
Changes in v2:
Added static for the definition as well
drivers/staging/r8188eu/core/rtw_recv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/r8188eu/core/rtw_recv.c +2 -2
@@ -24,7 +24,7 @@ static u8 rtw_rfc1042_header[] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 }; -void rtw_signal_stat_timer_hdl (struct timer_list *t); +static void rtw_signal_stat_timer_hdl (struct timer_list *t);void _rtw_init_sta_recv_priv (struct sta_recv_priv *psta_recvpriv) {
@@ -1794,7 +1794,7 @@ s32 rtw_recv_entry(struct recv_frame *precvframe)return ret; } -void rtw_signal_stat_timer_hdl (struct timer_list *t) +static void rtw_signal_stat_timer_hdl (struct timer_list *t) {struct adapter *adapter =from_timer (adapter, t, recvpriv.signal_stat_timer);struct recv_priv *recvpriv = &adapter->recvpriv;
Signature · 1 line
2.36.1
Quoted 25 lines · Chang Yu
Make
rtw_signal_stat_timer_hdla static function instead of a global function.Signed-off-by Chang Yu <[email protected]>---
Changes in v2:
Added static for the definition as welldrivers/staging/r8188eu/core/rtw_recv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/r8188eu/core/rtw_recv.c +1
-1@@ -24,7 +24,7 @@ static u8 rtw_rfc1042_header[] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 }; -void rtw_signal_stat_timer_hdl (struct timer_list *t); +static void rtw_signal_stat_timer_hdl (struct timer_list *t);void _rtw_init_sta_recv_priv (struct sta_recv_priv *psta_recvpriv) {
drivers/staging/r8188eu/core/rtw_recv.c s32 rtw_recv_entry(struct recv_frame *precvframe) · line 1800
Quoted 8 lines
drivers/staging/r8188eu/core/rtw_recv.c +1
-1@@ -1794,7 +1794,7 @@ s32 rtw_recv_entry(struct recv_frame *precvframe)return ret; } -void rtw_signal_stat_timer_hdl (struct timer_list *t) +static void rtw_signal_stat_timer_hdl (struct timer_list *t) {struct adapter *adapter =from_timer (adapter, t, recvpriv.signal_stat_timer);struct recv_priv *recvpriv = &adapter->recvpriv;