staging: rtl8712: r8712_wdg_timeout_handler: Remove function
authorNishka Dasgupta <nishkadg.linux@gmail.com>
Fri, 21 Jun 2019 06:08:10 +0000 (11:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2019 14:46:18 +0000 (16:46 +0200)
Remove function _r8712_wdg_timeout_handler as all it does is call
r8712_wdg_wk_cmd. Modify call site of _r8712_wdg_timeout_handler to call
r8712_wdg_wk_cmd instead.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/mlme_linux.c
drivers/staging/rtl8712/rtl871x_mlme.c
drivers/staging/rtl8712/rtl871x_mlme.h

index 23b87ccf4d07d7585e440fdf184b123a50cf15ad..b9f5104f3bf75a0fc0f132886fdc418eb379757e 100644 (file)
@@ -60,7 +60,7 @@ static void wdg_timeout_handler (struct timer_list *t)
        struct _adapter *adapter =
                from_timer(adapter, t, mlmepriv.wdg_timer);
 
-       _r8712_wdg_timeout_handler(adapter);
+       r8712_wdg_wk_cmd(adapter);
 
        mod_timer(&adapter->mlmepriv.wdg_timer,
                  jiffies + msecs_to_jiffies(2000));
index b260c29ea4bdfca9663fdd42597521ae4f09e0b9..c55555546d42daa89f8f764e35236e3ee70ee1a4 100644 (file)
@@ -1079,11 +1079,6 @@ void _r8712_dhcp_timeout_handler (struct _adapter *adapter)
                            adapter->registrypriv.smart_ps);
 }
 
-void _r8712_wdg_timeout_handler(struct _adapter *adapter)
-{
-       r8712_wdg_wk_cmd(adapter);
-}
-
 int r8712_select_and_join_from_scan(struct mlme_priv *pmlmepriv)
 {
        struct list_head *phead;
index 9e8343139414f2dae780ff5457898481388d7292..a160107e98010ec351fa0319e539f49404d2f52f 100644 (file)
@@ -195,7 +195,6 @@ void _r8712_sitesurvey_ctrl_handler(struct _adapter *adapter);
 void _r8712_join_timeout_handler(struct _adapter *adapter);
 void r8712_scan_timeout_handler(struct _adapter *adapter);
 void _r8712_dhcp_timeout_handler(struct _adapter *adapter);
-void _r8712_wdg_timeout_handler(struct _adapter *adapter);
 struct wlan_network *_r8712_alloc_network(struct mlme_priv *pmlmepriv);
 sint r8712_if_up(struct _adapter *padapter);
 void r8712_joinbss_reset(struct _adapter *padapter);