oran: Fix Dead Store found by Clang Analyzer

packet-oran.c:1073:25: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
This commit is contained in:
Alexis La Goutte 2021-09-05 15:35:28 +02:00 committed by Wireshark GitLab Utility
parent 3d0017ec9f
commit b007d13f57
1 changed files with 5 additions and 5 deletions

View File

@ -1070,11 +1070,11 @@ static int dissect_oran_c_section(tvbuff_t *tvb, proto_tree *tree, packet_info *
/* Any remaining BFWs will be added into an 'orphan bundle'. */
orphaned_prbs = numPrbc % numBundPrb;
if (orphaned_prbs) {
offset = dissect_bfw_bundle(tvb, extension_tree, pinfo, offset,
comp_meth_ti, bfwcomphdr_comp_meth,
iq_width, ORPHAN_BUNDLE_NUMBER,
startPrbc + num_bundles*numBundPrb,
startPrbc + num_bundles*numBundPrb + orphaned_prbs-1);
dissect_bfw_bundle(tvb, extension_tree, pinfo, offset,
comp_meth_ti, bfwcomphdr_comp_meth,
iq_width, ORPHAN_BUNDLE_NUMBER,
startPrbc + num_bundles*numBundPrb,
startPrbc + num_bundles*numBundPrb + orphaned_prbs-1);
}
}
else {