wccp: fix Dead Store found by Clang Analyzer
packet-wccp.c:2423:11: warning: Although the value stored to 'length_remaining' is used in the enclosing expression, the value is never actually read from 'length_remaining'
This commit is contained in:
parent
9d91ebd616
commit
7d8d209c9f
|
@ -2420,7 +2420,7 @@ dissect_wccp2_info(tvbuff_t *tvb, int offset,
|
|||
*/
|
||||
find_wccp_address_table(tvb,offset,pinfo,wccp_tree, &wccp_wccp_address_table);
|
||||
|
||||
while ((length_remaining = tvb_reported_length_remaining(tvb, offset)) > 0) {
|
||||
while (tvb_reported_length_remaining(tvb, offset) > 0) {
|
||||
type = tvb_get_ntohs(tvb, offset);
|
||||
switch (type) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue