use void in init_mp_priv() function return allways _SUCCESS

This commit is contained in:
kimocoder
2019-02-14 17:54:31 +01:00
parent cea7924b19
commit ba7d6c3883
21 changed files with 6 additions and 7 deletions
+3
View File
@@ -1092,6 +1092,9 @@ check_bss:
struct ieee80211_channel *notify_channel;
u32 freq;
u16 channel = cur_network->network.Configuration.DSConfig;
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 12, 0))
struct cfg80211_roam_info roam_info;
#endif
freq = rtw_ch2freq(channel);
notify_channel = ieee80211_get_channel(wiphy, freq);
-2
View File
@@ -1476,8 +1476,6 @@ int rtw_mp_mon(struct net_device *dev,
LeaveAllPowerSaveMode(padapter);
#ifdef CONFIG_MP_INCLUDED
if (init_mp_priv(padapter) == _FAIL)
RTW_INFO("%s: initialize MP private data Fail!\n", __func__);
padapter->mppriv.channel = 6;
bstart = strncmp(extra, "start", 5); /* strncmp TRUE is 0*/
+1 -2
View File
@@ -2333,8 +2333,7 @@ u8 rtw_init_drv_sw(_adapter *padapter)
/* _rtw_memset((u8 *)&padapter->qospriv, 0, sizeof (struct qos_priv)); */ /* move to mlme_priv */
#ifdef CONFIG_MP_INCLUDED
if (init_mp_priv(padapter) == _FAIL)
RTW_INFO("%s: initialize MP private data Fail!\n", __func__);
init_mp_priv(padapter);
#endif
rtw_hal_dm_init(padapter);