libosmocore[master]: gsm/tlv.h: fix copy-paste error

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Vadim Yanitskiy gerrit-no-reply at lists.osmocom.org
Mon May 15 09:40:25 UTC 2017


Patch Set 1:

> How was this found? Is there specific test case we might add which
 > fails with old code but works with new one?

This was found by cppcheck: "unreachable part of code".
My assumption is that the TVLV_GROSS_LEN was merely
copy-pasted to VTVLV_GAN_GROSS_LEN, and return statements
were out of code writer's attention.

Otherwise, why do we need another function, which works
the same way like old one?

-- 
To view, visit https://gerrit.osmocom.org/2592
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-HasComments: No



More information about the gerrit-log mailing list