<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 1: Code-Review+1</p><p style="white-space: pre-wrap; word-wrap: break-word;">Did you check existing callers of these APIs to make sure are behaving as expecting before/after the change?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">I checked in libosmocore and just rechecked other osmo-* projects and the return values are universally ignored (both of tlv_put and msgb_tlv_put). Tbh I don't see how the current return values could have ever been usable for any case (except where they evaluate to the correct pointer e.g. with t16lv_put and len 0).</p><p style="white-space: pre-wrap; word-wrap: break-word;">Programs usually call a variant of msgb_tlv_put which uses the *_TLV_GROSS_LEN macros to advance the buffer (with msgb_put), so that calculation was and still is correct.</p><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23401">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23401">change 23401</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/libosmocore/+/23401"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I268a7e11fb5dce67ce1bd7974ab86c4d2bd002f7 </div>
<div style="display:none"> Gerrit-Change-Number: 23401 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 18 Mar 2021 13:53:53 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>