forked from osmocom/wireshark
mswsp: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Id521ecbdbaa1818b6480d9fcd4257104dc3699bb Reviewed-on: https://code.wireshark.org/review/29774 Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
a76d4da8bf
commit
d6e962345a
|
@ -4233,7 +4233,6 @@ static int parse_CBaseStorageVariant(tvbuff_t *tvb, packet_info *pinfo, int offs
|
|||
* Not a valid type.
|
||||
*/
|
||||
ti_type = proto_tree_add_string(tree, hf_mswsp_cbasestorvariant_vtype, tvb, offset, 2, "Unknown CBaseStorageVariant type");
|
||||
offset += 2;
|
||||
expert_add_info(pinfo, ti_type, &ei_mswsp_invalid_variant_type);
|
||||
|
||||
THROW_MESSAGE(ReportedBoundsError, "Unknown CBaseStorageVariant type");
|
||||
|
@ -5275,7 +5274,6 @@ static int parse_VariantCol(tvbuff_t *tvb, packet_info *pinfo, int offset, proto
|
|||
*/
|
||||
ti_type = proto_tree_add_string(tree, hf_mswsp_ctablecolumn_vtype, tvb, offset, 4, "Unknown variant column type");
|
||||
expert_add_info(pinfo, ti_type, &ei_mswsp_invalid_variant_type);
|
||||
offset += 2;
|
||||
|
||||
THROW_FORMATTED(ReportedBoundsError, "Unknown variant column type%s", modifier);
|
||||
return offset;
|
||||
|
|
Loading…
Reference in New Issue