From 4bcc8d86f8ebe849f404e86ae4229342c570ff1f Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Tue, 6 Sep 2022 11:31:53 +0000 Subject: [PATCH] mbim: Fix deadcode found by Clang Analyzer packet-mbim.c:5651:5: warning: Value stored to 'offset' is never read [deadcode.DeadStores] packet-mbim.c:5703:5: warning: Value stored to 'offset' is never read [deadcode.DeadStores] --- epan/dissectors/packet-mbim.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/epan/dissectors/packet-mbim.c b/epan/dissectors/packet-mbim.c index 91dd65c0a0..b360110663 100644 --- a/epan/dissectors/packet-mbim.c +++ b/epan/dissectors/packet-mbim.c @@ -5648,7 +5648,6 @@ mbim_dissect_ms_sar_config_state(tvbuff_t* tvb, proto_tree* tree, gint offset) proto_tree_add_item(tree, hf_mbim_ms_sar_config_state_sar_antenna_index, tvb, offset, 4, ENC_LITTLE_ENDIAN); offset += 4; proto_tree_add_item(tree, hf_mbim_ms_sar_config_state_sar_backoff_index, tvb, offset, 4, ENC_LITTLE_ENDIAN); - offset += 4; } static void @@ -5700,7 +5699,6 @@ mbim_dissect_ms_transmission_status(tvbuff_t* tvb, proto_tree* tree, gint offset offset += 4; } proto_tree_add_item(tree, hf_mbim_ms_transmission_status_hysteresis_timer, tvb, offset, 4, ENC_LITTLE_ENDIAN); - offset += 4; }