aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/visor.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/visor.c')
-rw-r--r--drivers/usb/serial/visor.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/usb/serial/visor.c b/drivers/usb/serial/visor.c
index ae016439e2cd..d93878541ee7 100644
--- a/drivers/usb/serial/visor.c
+++ b/drivers/usb/serial/visor.c
@@ -324,11 +324,8 @@ static int palm_os_3_probe(struct usb_serial *serial,
324 int num_ports = 0; 324 int num_ports = 0;
325 325
326 transfer_buffer = kmalloc(sizeof(*connection_info), GFP_KERNEL); 326 transfer_buffer = kmalloc(sizeof(*connection_info), GFP_KERNEL);
327 if (!transfer_buffer) { 327 if (!transfer_buffer)
328 dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __func__,
329 sizeof(*connection_info));
330 return -ENOMEM; 328 return -ENOMEM;
331 }
332 329
333 /* send a get connection info request */ 330 /* send a get connection info request */
334 retval = usb_control_msg(serial->dev, 331 retval = usb_control_msg(serial->dev,
@@ -419,11 +416,8 @@ static int palm_os_4_probe(struct usb_serial *serial,
419 int retval; 416 int retval;
420 417
421 transfer_buffer = kmalloc(sizeof(*connection_info), GFP_KERNEL); 418 transfer_buffer = kmalloc(sizeof(*connection_info), GFP_KERNEL);
422 if (!transfer_buffer) { 419 if (!transfer_buffer)
423 dev_err(dev, "%s - kmalloc(%Zd) failed.\n", __func__,
424 sizeof(*connection_info));
425 return -ENOMEM; 420 return -ENOMEM;
426 }
427 421
428 retval = usb_control_msg(serial->dev, 422 retval = usb_control_msg(serial->dev,
429 usb_rcvctrlpipe(serial->dev, 0), 423 usb_rcvctrlpipe(serial->dev, 0),