aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can')
-rw-r--r--drivers/net/can/usb/peak_usb/pcan_usb_pro.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c b/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
index 263dd921edc4..f7f796a2c50b 100644
--- a/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
+++ b/drivers/net/can/usb/peak_usb/pcan_usb_pro.c
@@ -333,8 +333,6 @@ static int pcan_usb_pro_send_req(struct peak_usb_device *dev, int req_id,
333 if (!(dev->state & PCAN_USB_STATE_CONNECTED)) 333 if (!(dev->state & PCAN_USB_STATE_CONNECTED))
334 return 0; 334 return 0;
335 335
336 memset(req_addr, '\0', req_size);
337
338 req_type = USB_TYPE_VENDOR | USB_RECIP_OTHER; 336 req_type = USB_TYPE_VENDOR | USB_RECIP_OTHER;
339 337
340 switch (req_id) { 338 switch (req_id) {
@@ -345,6 +343,7 @@ static int pcan_usb_pro_send_req(struct peak_usb_device *dev, int req_id,
345 default: 343 default:
346 p = usb_rcvctrlpipe(dev->udev, 0); 344 p = usb_rcvctrlpipe(dev->udev, 0);
347 req_type |= USB_DIR_IN; 345 req_type |= USB_DIR_IN;
346 memset(req_addr, '\0', req_size);
348 break; 347 break;
349 } 348 }
350 349