gsm/tlv.h: fix copy-paste error

Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
This commit is contained in:
Vadim Yanitskiy 2017-05-14 20:52:46 +03:00 committed by Harald Welte
parent 35b54d12bb
commit ac9e2d8aa5
1 changed files with 2 additions and 2 deletions

View File

@ -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;