staging: rtl8723au: Remove pointless IS_STA_VALID() macro
authorJes Sorensen <Jes.Sorensen@redhat.com>
Thu, 17 Jul 2014 20:59:57 +0000 (22:59 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jul 2014 00:54:08 +0000 (17:54 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/odm.c
drivers/staging/rtl8723au/hal/odm_HWConfig.c
drivers/staging/rtl8723au/include/odm.h

index f21861e7439006a8b432fc5944ba4d9b58c69086..ce192de047583da69b6918b97d7215f2e7a85e8c 100644 (file)
@@ -570,7 +570,7 @@ void odm_CommonInfoSelfUpdate23a(struct dm_odm_t *pDM_Odm)
 
        for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
                pEntry = pDM_Odm->pODM_StaInfo[i];
-               if (IS_STA_VALID(pEntry))
+               if (pEntry)
                        EntryCnt++;
        }
        if (EntryCnt == 1)
@@ -1216,7 +1216,7 @@ u32 ODM_Get_Rate_Bitmap23a(struct dm_odm_t *pDM_Odm,
        /* u8 WirelessMode =*(pDM_Odm->pWirelessMode); */
 
        pEntry = pDM_Odm->pODM_StaInfo[macid];
-       if (!IS_STA_VALID(pEntry))
+       if (!pEntry)
                return ra_mask;
 
        WirelessMode = pEntry->wireless_mode;
@@ -1338,7 +1338,7 @@ void odm_RefreshRateAdaptiveMask23aCE23a(struct dm_odm_t *pDM_Odm)
 
        for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
                struct sta_info *pstat = pDM_Odm->pODM_StaInfo[i];
-               if (IS_STA_VALID(pstat)) {
+               if (pstat) {
                        if (ODM_RAStateCheck23a(pDM_Odm, pstat->rssi_stat.UndecoratedSmoothedPWDB, false, &pstat->rssi_level)) {
                                ODM_RT_TRACE(pDM_Odm, ODM_COMP_RA_MASK, ODM_DBG_LOUD,
                                             ("RSSI:%d, RSSI_LEVEL:%d\n",
@@ -1480,7 +1480,7 @@ void odm_RSSIMonitorCheck23aCE(struct dm_odm_t *pDM_Odm)
 
        for (i = 0; i < ODM_ASSOCIATE_ENTRY_NUM; i++) {
                psta = pDM_Odm->pODM_StaInfo[i];
-               if (IS_STA_VALID(psta)) {
+               if (psta) {
                        if (psta->rssi_stat.UndecoratedSmoothedPWDB < tmpEntryMinPWDB)
                                tmpEntryMinPWDB = psta->rssi_stat.UndecoratedSmoothedPWDB;
 
index 26fbf6c38b998bba67f4617edbdb48dd41b86336..ab820a888c0f87660765554cd1409d554f2648f8 100644 (file)
@@ -291,7 +291,7 @@ static void odm_Process_RSSIForDM(struct dm_odm_t *pDM_Odm,
                return;
 
        pEntry = pDM_Odm->pODM_StaInfo[pPktinfo->StationID];
-       if (!IS_STA_VALID(pEntry))
+       if (!pEntry)
                return;
        if ((!pPktinfo->bPacketMatchBSSID))
                return;
index b466a81b3364478956a59c07ffa3bf3a75803671..b2f661e4e1767ffde2e6addaccbdf0b04c5a3940 100644 (file)
@@ -1001,10 +1001,6 @@ extern   u8 CCKSwingTable_Ch1423A [CCK_TABLE_SIZE][8];
 
 
 
-/*  */
-/*  check Sta pointer valid or not */
-/*  */
-#define IS_STA_VALID(pSta)             (pSta)
 /*  20100514 Joseph: Add definition for antenna switching test after link. */
 /*  This indicates two different the steps. */
 /*  In SWAW_STEP_PEAK, driver needs to switch antenna and listen to the signal on the air. */