aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/power_control.c
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-11-27 16:17:16 +0100
committerMax <msuraev@sysmocom.de>2017-11-27 16:17:16 +0100
commitf78caac25c6cf5dbed2bfd92fd39483d04efc79f (patch)
tree2771c69344818bdd8a17b2b6021e1218eed26c94 /src/common/power_control.c
parent25647562968ac6985e3999f4e71bbfd7751d6715 (diff)
Remove leftover comments and checks
It seems like rx previously had 'float' type. Remove the comments and checks which are not relevant since rx is 'int'. Change-Id: Idb4aad53667f88f9656c5bb1c52e7e75b385f446 Fixes: OS#2223
Diffstat (limited to 'src/common/power_control.c')
-rw-r--r--src/common/power_control.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/common/power_control.c b/src/common/power_control.c
index 78d2702b..e040ee4c 100644
--- a/src/common/power_control.c
+++ b/src/common/power_control.c
@@ -56,18 +56,9 @@ int lchan_ms_pwr_ctrl(struct gsm_lchan *lchan,
if (lchan->ms_power_ctrl.current != ms_power)
return 0;
- /*
- * What is the difference between what we want and received?
- * Ignore a margin that is within the range of measurement
- * and MS output issues.
- */
+ /* What is the difference between what we want and received? */
rx = btsb->ul_power_target - rxLevel;
- if (rx >= 0 && rx < 1)
- return 0;
- if (rx < 0 && rx > -1)
- return 0;
- /* We don't really care about the truncation of int + float */
cur_dBm = ms_pwr_dbm(band, ms_power);
new_dBm = cur_dBm + rx;