summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;