From 2936b46458ab115a4f2049c4df4cd316faaef825 Mon Sep 17 00:00:00 2001 From: Larry Finger Date: Sun, 14 Feb 2016 19:43:38 -0600 Subject: [PATCH] rtl8188eu: Remove ODM_RF_PATH_MAX This is always equal to RF_PATH_MAX. Signed-off-by: Larry Finger --- hal/odm.h | 3 --- hal/odm_HWConfig.c | 2 +- include/odm.h | 2 -- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/hal/odm.h b/hal/odm.h index a611f9f..c177d16 100644 --- a/hal/odm.h +++ b/hal/odm.h @@ -1170,14 +1170,11 @@ typedef struct DM_Out_Source_Dynamic_Mechanism_Structure /* ODM relative workitem. */ } DM_ODM_T, *PDM_ODM_T; /* DM_Dynamic_Mechanism_Structure */ -#define ODM_RF_PATH_MAX 2 - typedef enum _ODM_RF_RADIO_PATH { ODM_RF_PATH_A = 0, /* Radio Path A */ ODM_RF_PATH_B = 1, /* Radio Path B */ ODM_RF_PATH_C = 2, /* Radio Path C */ ODM_RF_PATH_D = 3, /* Radio Path D */ - /* ODM_RF_PATH_MAX, Max RF number 90 support */ } ODM_RF_RADIO_PATH_E, *PODM_RF_RADIO_PATH_E; typedef enum _ODM_RF_CONTENT{ diff --git a/hal/odm_HWConfig.c b/hal/odm_HWConfig.c index eba13a5..e16d0fb 100644 --- a/hal/odm_HWConfig.c +++ b/hal/odm_HWConfig.c @@ -442,7 +442,7 @@ odm_RxPhyStatus92CSeries_Parsing( pDM_Odm->PhyDbgInfo.NumQryPhyStatusOFDM++; /* (1)Get RSSI for HT rate */ - for (i = ODM_RF_PATH_A; i < ODM_RF_PATH_MAX; i++) + for (i = ODM_RF_PATH_A; i < RF_PATH_MAX; i++) { /* 2008/01/30 MH we will judge RF RX path now. */ if (pDM_Odm->RFPathRxEnable & BIT(i)) diff --git a/include/odm.h b/include/odm.h index 1230a06..545ec76 100644 --- a/include/odm.h +++ b/include/odm.h @@ -946,8 +946,6 @@ struct odm_dm_struct { struct timer_list FastAntTrainingTimer; }; /* DM_Dynamic_Mechanism_Structure */ -#define ODM_RF_PATH_MAX 3 - enum ODM_RF_RADIO_PATH { ODM_RF_PATH_A = 0, /* Radio Path A */ ODM_RF_PATH_B = 1, /* Radio Path B */