summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-05-14 20:52:46 +0300
committerHarald Welte <laforge@gnumonks.org>2017-05-15 12:51:15 +0000
commitac9e2d8aa52cbc4198cd94ab9d9c92c3317a979f (patch)
tree645e666c771478a66546c72f7361756217af1618 /include/osmocom/gsm
parent35b54d12bbedd61562bd9f5a3131024a166a4835 (diff)
gsm/tlv.h: fix copy-paste error
Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
Diffstat (limited to 'include/osmocom/gsm')
-rw-r--r--include/osmocom/gsm/tlv.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/osmocom/gsm/tlv.h b/include/osmocom/gsm/tlv.h
index 8caddae8..4a9bd272 100644
--- a/include/osmocom/gsm/tlv.h
+++ b/include/osmocom/gsm/tlv.h
@@ -68,9 +68,9 @@ static inline uint16_t VTVLV_GAN_GROSS_LEN(uint16_t tag, uint16_t len)
uint16_t ret;
if (len <= TVLV_MAX_ONEBYTE)
- return TLV_GROSS_LEN(len);
+ ret = TLV_GROSS_LEN(len);
else
- return TL16V_GROSS_LEN(len);
+ ret = TL16V_GROSS_LEN(len);
if (tag > TVLV_MAX_ONEBYTE)
ret += 1;