aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gsm_04_11.c
diff options
context:
space:
mode:
authorSteffen Neubauer <stefreak@stefreak.de>2009-11-26 23:38:41 +0100
committerHarald Welte <laforge@gnumonks.org>2009-12-05 12:07:12 +0530
commitad69d7f8b2f4dff55b6244cad506113f33eed65c (patch)
treeb1bb7a2950bd162524d7dd8298bd319089d0bbc3 /openbsc/src/gsm_04_11.c
parenta897bf3dedfa0e9ce83434389c23993b84079656 (diff)
[sms] trivial: Removed unneeded double check in unbcdify
Diffstat (limited to 'openbsc/src/gsm_04_11.c')
-rw-r--r--openbsc/src/gsm_04_11.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/openbsc/src/gsm_04_11.c b/openbsc/src/gsm_04_11.c
index 8e3c6497..4930e5c8 100644
--- a/openbsc/src/gsm_04_11.c
+++ b/openbsc/src/gsm_04_11.c
@@ -218,8 +218,7 @@ static u_int8_t unbcdify(u_int8_t value)
DEBUGP(DSMS, "unbcdify got too big nibble: 0x%02X\n", value);
ret = (value&0x0F)*10;
- if (ret > 90)
- ret += value>>4;
+ ret += value>>4;
return ret;
}