rtps-processed: Fix Dead Store found by Clang Analyzer

packet-rtps-processed.c:321:13: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-rtps-processed.c:349:13: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
packet-rtps-processed.c:356:9: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
This commit is contained in:
Alexis La Goutte 2021-05-24 19:50:17 +00:00 committed by Wireshark GitLab Utility
parent e520217ea5
commit b65488b4be
1 changed files with 0 additions and 3 deletions

View File

@ -318,7 +318,6 @@ static gint dissect_rtps_processed(
rtps_vendor_id,
&guid);
offset += param_length;
/*
* Get the decrypted submessages and update the column information.
*/
@ -346,14 +345,12 @@ static gint dissect_rtps_processed(
pinfo,
rtpsproc_tree_frame1);
}
offset += param_length;
}
} else {
/*
* If there is no security information, param_id is zeroed.
* In that case the length is also zero, so we move 4 Bytes in total.
*/
offset += 4;
}
return tvb_captured_length(tvb);
}