these two vars are initialized to NULL,
we don't have to set them to NULL again Change-Id: Iacd01ca207d2b74ebdbd5a7635f00e6d03b13721 Reviewed-on: https://code.wireshark.org/review/3726 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
parent
5c554c9c41
commit
8c84a23049
1 changed files with 0 additions and 4 deletions
|
@ -3477,8 +3477,6 @@ dissect_usb_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent,
|
|||
device_product_data->device_address == device_address) {
|
||||
p_add_proto_data(pinfo->pool, pinfo, proto_usb, USB_VENDOR_ID, GUINT_TO_POINTER((guint)device_product_data->vendor));
|
||||
p_add_proto_data(pinfo->pool, pinfo, proto_usb, USB_PRODUCT_ID, GUINT_TO_POINTER((guint)device_product_data->product));
|
||||
} else {
|
||||
device_product_data = NULL;
|
||||
}
|
||||
|
||||
device_protocol_data = (device_protocol_data_t *) wmem_tree_lookup32_array_le(device_to_protocol_table, key);
|
||||
|
@ -3488,8 +3486,6 @@ dissect_usb_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent,
|
|||
p_add_proto_data(pinfo->pool, pinfo, proto_usb, USB_DEVICE_SUBCLASS, GUINT_TO_POINTER((device_protocol_data->protocol >> 8) & 0xFF));
|
||||
p_add_proto_data(pinfo->pool, pinfo, proto_usb, USB_DEVICE_PROTOCOL, GUINT_TO_POINTER(device_protocol_data->protocol & 0xFF));
|
||||
usb_conv_info->device_protocol = device_protocol_data->protocol;
|
||||
} else {
|
||||
device_protocol_data = NULL;
|
||||
}
|
||||
|
||||
p_add_proto_data(pinfo->pool, pinfo, proto_usb, USB_BUS_ID, GUINT_TO_POINTER((guint)usb_conv_info->bus_id));
|
||||
|
|
Loading…
Reference in a new issue