bt-utp: Fix warning found by Clang Analyzer
packet-bt-utp.c:1052:5: warning: Value stored to 'offset' is never read [deadcode.DeadStores]
This commit is contained in:
parent
aa0eb732b1
commit
cfcd060171
|
@ -1051,7 +1051,7 @@ dissect_bt_utp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _
|
|||
|
||||
offset += dissect_utp_payload(tvb_new_subset_remaining(tvb, offset), pinfo, sub_tree);
|
||||
|
||||
return tvb_reported_length(tvb);
|
||||
return offset;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue