pdu-transport: Fix Dead store Found by Clang Analyzer
packet-pdu-transport.c:244:9: warning: Value stored to 'tmp' is never read
This commit is contained in:
parent
572774123f
commit
f715b01058
|
@ -676,7 +676,7 @@ static int dissect_oran_c_section(tvbuff_t *tvb, proto_tree *tree, packet_info *
|
|||
offset += 4;
|
||||
proto_tree_add_item(extension_tree, hf_oran_noncontig_res2, tvb, offset, 1, ENC_BIG_ENDIAN);
|
||||
proto_tree_add_item(extension_tree, hf_oran_symbolMask, tvb, offset, 2, ENC_BIG_ENDIAN);
|
||||
offset += 2;
|
||||
/* offset += 2; */
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
@ -241,7 +241,7 @@ dissect_pdu_transport(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void
|
|||
pdu_transport_info_t pdu_t_info;
|
||||
pdu_t_info.id = pdu_id;
|
||||
|
||||
tmp = dissector_try_uint_new(subdissector_table, pdu_id, subtvb, pinfo, tree, FALSE, (void *)(&pdu_t_info));
|
||||
dissector_try_uint_new(subdissector_table, pdu_id, subtvb, pinfo, tree, FALSE, (void *)(&pdu_t_info));
|
||||
}
|
||||
offset += (gint)length;
|
||||
|
||||
|
|
Loading…
Reference in New Issue