Review at https://gerrit.osmocom.org/2592
gsm/tlv.h: fix copy-paste error
Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
---
M include/osmocom/gsm/tlv.h
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/92/2592/1
diff --git a/include/osmocom/gsm/tlv.h b/include/osmocom/gsm/tlv.h
index 701fe68..8e563de 100644
--- a/include/osmocom/gsm/tlv.h
+++ b/include/osmocom/gsm/tlv.h
@@ -66,9 +66,9 @@
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;
--
To view, visit https://gerrit.osmocom.org/2592
To unsubscribe, visit https://gerrit.osmocom.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <[email protected]>