Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195353
b: refs/heads/master
c: 1a1405e
h: refs/heads/master
i:
  195351: b11e5a4
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 461afdd commit 72d7fa1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1b551015a10d6cf04f2f8e11f0ca534b261d2c55
refs/heads/master: 1a1405e22563151de79fdc83aa5e5815d10f0291
13 changes: 4 additions & 9 deletions trunk/drivers/usb/serial/generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ static int usb_serial_multi_urb_write(struct tty_struct *tty,

status = usb_submit_urb(urb, GFP_ATOMIC);
if (status) {
dev_err(&port->dev,
"%s - failed submitting write urb, error %d\n",
dev_err(&port->dev, "%s - error submitting urb: %d\n",
__func__, status);
goto error;
}
Expand Down Expand Up @@ -285,8 +284,7 @@ static int usb_serial_generic_write_start(struct usb_serial_port *port)
/* send the data out the bulk port */
result = usb_submit_urb(port->write_urb, GFP_ATOMIC);
if (result) {
dev_err(&port->dev,
"%s - failed submitting write urb, error %d\n",
dev_err(&port->dev, "%s - error submitting urb: %d\n",
__func__, result);
/* don't have to grab the lock here, as we will
retry if != 0 */
Expand Down Expand Up @@ -324,10 +322,8 @@ int usb_serial_generic_write(struct tty_struct *tty,
if (!port->bulk_out_size)
return -ENODEV;

if (count == 0) {
dbg("%s - write request of 0 bytes", __func__);
if (!count)
return 0;
}

if (serial->type->max_in_flight_urbs)
return usb_serial_multi_urb_write(tty, port,
Expand Down Expand Up @@ -400,8 +396,7 @@ int usb_serial_generic_submit_read_urb(struct usb_serial_port *port,

result = usb_submit_urb(port->read_urb, mem_flags);
if (result && result != -EPERM) {
dev_err(&port->dev,
"%s - failed submitting read urb, error %d\n",
dev_err(&port->dev, "%s - error submitting urb: %d\n",
__func__, result);
}
return result;
Expand Down

0 comments on commit 72d7fa1

Please sign in to comment.