|
@@ -333,8 +333,6 @@ static int pcan_usb_pro_send_req(struct peak_usb_device *dev, int req_id,
|
|
|
if (!(dev->state & PCAN_USB_STATE_CONNECTED))
|
|
|
return 0;
|
|
|
|
|
|
- memset(req_addr, '\0', req_size);
|
|
|
-
|
|
|
req_type = USB_TYPE_VENDOR | USB_RECIP_OTHER;
|
|
|
|
|
|
switch (req_id) {
|
|
@@ -345,6 +343,7 @@ static int pcan_usb_pro_send_req(struct peak_usb_device *dev, int req_id,
|
|
|
default:
|
|
|
p = usb_rcvctrlpipe(dev->udev, 0);
|
|
|
req_type |= USB_DIR_IN;
|
|
|
+ memset(req_addr, '\0', req_size);
|
|
|
break;
|
|
|
}
|
|
|
|