(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-bthci_cmd.c) |
| |
| 1816 | | | dissect_status_parameters_cmd(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, |
| 1817 | | | proto_tree *tree, guint16 cmd_ocf) |
| 1818 | | | { |
| 1819 | | | switch(cmd_ocf) { |
| 1820 | | | |
| 1821 | | | case 0x0001: |
| 1822 | | | case 0x0002: |
| 1823 | | | case 0x0003: |
| 1824 | | | case 0x0005: |
| 1825 | | | case 0x0006: |
| 1826 | | | proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, TRUE); |
| 1827 | | | offset+=2; |
Unused Value
The value assigned to offset is never subsequently used on any execution path. |
|
| 1828 | | | break; |
| 1829 | | | |
| 1830 | | | case 0x0007: |
| 1831 | | | proto_tree_add_item(tree, hf_bthci_cmd_connection_handle, tvb, offset, 2, TRUE); |
| 1832 | | | offset+=2; |
| 1833 | | | proto_tree_add_item(tree, hf_bthci_cmd_which_clock, tvb, offset, 1, TRUE); |
| 1834 | | | offset++; |
| 1835 | | | break; |
| 1836 | | | |
| 1837 | | | default: |
| 1838 | | | proto_tree_add_item(tree, hf_bthci_cmd_params, tvb, offset, -1, TRUE); |
| 1839 | | | offset+=tvb_length_remaining(tvb, offset); |
| 1840 | | | break; |
| 1841 | | | |
| 1842 | | | } |
| 1843 | | | } |
| |