(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-usb-masstorage.c) |
| |
| 91 | | | dissect_usb_ms_get_max_lun(packet_info *pinfo _U_, proto_tree *tree, tvbuff_t *tvb, int offset, gboolean is_request, usb_trans_info_t *usb_trans_info _U_, usb_conv_info_t *usb_conv_info _U_) |
| 92 | | | { |
| 93 | | | if(is_request){ |
| 94 | | | proto_tree_add_item(tree, hf_usb_ms_value, tvb, offset, 2, FALSE); |
| 95 | | | offset += 2; |
| 96 | | | |
| 97 | | | proto_tree_add_item(tree, hf_usb_ms_index, tvb, offset, 2, FALSE); |
| 98 | | | offset += 2; |
| 99 | | | |
| 100 | | | proto_tree_add_item(tree, hf_usb_ms_length, tvb, offset, 2, FALSE); |
| 101 | | | offset += 2; |
Unused Value
The value assigned to offset is never subsequently used on any execution path. |
|
| 102 | | | } else { |
| 103 | | | proto_tree_add_item(tree, hf_usb_ms_maxlun, tvb, offset, 1, FALSE); |
| 104 | | | offset++; |
| 105 | | | } |
| 106 | | | } |
| |