aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Mc Guire <hofrat@osadl.org>2015-02-04 05:28:54 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-02-07 04:37:52 -0500
commit3d272700d73c6503138759c1de6021ee4466e4d8 (patch)
tree578c54744185d0e92dcaf79604d96d0d525f94d7
parent9b1af46b3ae1880f7ab7b1f1598b4daf2ddec8e4 (diff)
staging: rtl8188eu: odm: condition with no effect
The if and the else branch code are identical - so the condition has no effect on the effective code - this patch removes the condition and the duplicated code. Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8188eu/hal/odm.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/rtl8188eu/hal/odm.c b/drivers/staging/rtl8188eu/hal/odm.c
index 9873998011d2..878c460f846c 100644
--- a/drivers/staging/rtl8188eu/hal/odm.c
+++ b/drivers/staging/rtl8188eu/hal/odm.c
@@ -534,13 +534,8 @@ void odm_DIGInit(struct odm_dm_struct *pDM_Odm)
534 pDM_DigTable->RssiHighThresh = DM_DIG_THRESH_HIGH; 534 pDM_DigTable->RssiHighThresh = DM_DIG_THRESH_HIGH;
535 pDM_DigTable->FALowThresh = DM_false_ALARM_THRESH_LOW; 535 pDM_DigTable->FALowThresh = DM_false_ALARM_THRESH_LOW;
536 pDM_DigTable->FAHighThresh = DM_false_ALARM_THRESH_HIGH; 536 pDM_DigTable->FAHighThresh = DM_false_ALARM_THRESH_HIGH;
537 if (pDM_Odm->BoardType == ODM_BOARD_HIGHPWR) { 537 pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC;
538 pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC; 538 pDM_DigTable->rx_gain_range_min = DM_DIG_MIN_NIC;
539 pDM_DigTable->rx_gain_range_min = DM_DIG_MIN_NIC;
540 } else {
541 pDM_DigTable->rx_gain_range_max = DM_DIG_MAX_NIC;
542 pDM_DigTable->rx_gain_range_min = DM_DIG_MIN_NIC;
543 }
544 pDM_DigTable->BackoffVal = DM_DIG_BACKOFF_DEFAULT; 539 pDM_DigTable->BackoffVal = DM_DIG_BACKOFF_DEFAULT;
545 pDM_DigTable->BackoffVal_range_max = DM_DIG_BACKOFF_MAX; 540 pDM_DigTable->BackoffVal_range_max = DM_DIG_BACKOFF_MAX;
546 pDM_DigTable->BackoffVal_range_min = DM_DIG_BACKOFF_MIN; 541 pDM_DigTable->BackoffVal_range_min = DM_DIG_BACKOFF_MIN;