staging: rtl8723au: Move dummy_event_callback() to rtw_mlme_ext.c
authorJes Sorensen <Jes.Sorensen@redhat.com>
Wed, 21 May 2014 07:38:25 +0000 (09:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 07:27:51 +0000 (16:27 +0900)
In addition get rid of a couple of empty *_event_callback() handlers
and use dummy_event_callback() instead.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_mlme.c
drivers/staging/rtl8723au/core/rtw_mlme_ext.c
drivers/staging/rtl8723au/include/rtw_mlme.h
drivers/staging/rtl8723au/include/rtw_mlme_ext.h

index da254855e50714bbdb46d455991a242b89b37808..148e11f2837bdb30e9941ad387bcd99b8475c185 100644 (file)
@@ -818,14 +818,6 @@ rtw_surveydone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
        rtw_cfg80211_surveydone_event_callback(adapter);
 }
 
-void rtw_dummy_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
-{
-}
-
-void rtw23a_fwdbg_event_callback(struct rtw_adapter *adapter, const u8 *pbuf)
-{
-}
-
 static void free_scanqueue(struct mlme_priv *pmlmepriv)
 {
        struct wlan_network *pnetwork;
@@ -1540,12 +1532,6 @@ void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf)
        spin_unlock_bh(&pmlmepriv->lock);
 }
 
-void rtw_cpwm_event_callback23a(struct rtw_adapter *padapter, const u8 *pbuf)
-{
-       RT_TRACE(_module_rtl871x_mlme_c_, _drv_err_,
-                ("+rtw_cpwm_event_callback23a !!!\n"));
-}
-
 /*
 * rtw23a_join_to_handler - Timeout/faliure handler for CMD JoinBss
 * @adapter: pointer to _adapter structure
index bc70548b4ee928893910ad9ffd8ab02741a93307..58ff635c51571978af4948e47be142439345f8c7 100644 (file)
@@ -235,9 +235,13 @@ static struct rt_channel_plan_map  RTW_ChannelPlanMap[RT_CHANNEL_DOMAIN_MAX] = {
 
 static struct rt_channel_plan_map      RTW_CHANNEL_PLAN_MAP_REALTEK_DEFINE = {0x03, 0x02}; /* use the conbination for max channel numbers */
 
+static void dummy_event_callback(struct rtw_adapter *adapter, const u8 *pbuf)
+{
+}
+
 static struct fwevent wlanevents[] =
 {
-       {0, rtw_dummy_event_callback23a},       /*0*/
+       {0, &dummy_event_callback},     /*0*/
        {0, NULL},
        {0, NULL},
        {0, NULL},
@@ -251,17 +255,17 @@ static struct fwevent wlanevents[] =
        {0, &rtw23a_joinbss_event_cb},          /*10*/
        {sizeof(struct stassoc_event), &rtw_stassoc_event_callback23a},
        {sizeof(struct stadel_event), &rtw_stadel_event_callback23a},
-       {0, &rtw_atimdone_event_callback23a},
-       {0, rtw_dummy_event_callback23a},
+       {0, &dummy_event_callback},
+       {0, &dummy_event_callback},
        {0, NULL},      /*15*/
        {0, NULL},
        {0, NULL},
        {0, NULL},
-       {0, rtw23a_fwdbg_event_callback},
+       {0, &dummy_event_callback},
        {0, NULL},       /*20*/
        {0, NULL},
        {0, NULL},
-       {0, &rtw_cpwm_event_callback23a},
+       {0, &dummy_event_callback},
        {0, NULL},
 };
 
index 2b72d5bd4d287b7a6a080226b5380cb96b02f556..b1f2b5fa94e11ec54854047c8721ebc47f68e02e 100644 (file)
@@ -338,9 +338,6 @@ void rtw_surveydone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbu
 void rtw23a_joinbss_event_cb(struct rtw_adapter *adapter, const u8 *pbuf);
 void rtw_stassoc_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
 void rtw_stadel_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
-void rtw_atimdone_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
-void rtw_cpwm_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
-
 
 int event_thread(void *context);
 void rtw23a_join_to_handler(unsigned long);
index b5f3dbbeb15761365e1b7c249e4b84db1df94fd7..afbd807299b9a0863f8e5d74ecbf0bdf188e7162 100644 (file)
@@ -670,9 +670,6 @@ struct C2HEvent_Header {
        unsigned int rsvd;
 };
 
-void rtw_dummy_event_callback23a(struct rtw_adapter *adapter, const u8 *pbuf);
-void rtw23a_fwdbg_event_callback(struct rtw_adapter *adapter, const u8 *pbuf);
-
 enum rtw_c2h_event {
        GEN_EVT_CODE(_Read_MACREG) = 0, /*0*/
        GEN_EVT_CODE(_Read_BBREG),