Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104665
b: refs/heads/master
c: 9e8e2d2
h: refs/heads/master
i:
  104663: 67c7b86
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jul 22, 2008
1 parent 66b80af commit 42c0454
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 6d1d1698966ab6a5ac7ddcb16602ffebcf97f887
refs/heads/master: 9e8e2d2ab58ee942b700a9453541d7539b704994
15 changes: 6 additions & 9 deletions trunk/drivers/usb/serial/iuu_phoenix.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,10 @@ static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
port->bulk_out_endpointAddress), buf,
count, &actual, HZ * 1);

if (status != IUU_OPERATION_OK) {
if (status != IUU_OPERATION_OK)
dbg("%s - error = %2x", __func__, status);
} else {
else
dbg("%s - write OK !", __func__);
}
return status;
}

Expand All @@ -342,12 +341,10 @@ static int read_immediate(struct usb_serial_port *port, u8 *buf, u8 count)
port->bulk_in_endpointAddress), buf,
count, &actual, HZ * 1);

if (status != IUU_OPERATION_OK) {
if (status != IUU_OPERATION_OK)
dbg("%s - error = %2x", __func__, status);
} else {
else
dbg("%s - read OK !", __func__);
}

return status;
}

Expand Down Expand Up @@ -770,14 +767,14 @@ static int iuu_uart_write(struct tty_struct *tty, struct usb_serial_port *port,
if (priv->writelen > 0) {
/* buffer already filled but not commited */
spin_unlock_irqrestore(&priv->lock, flags);
return (0);
return 0;
}
/* fill the buffer */
memcpy(priv->writebuf, buf, count);
priv->writelen = count;
spin_unlock_irqrestore(&priv->lock, flags);

return (count);
return count;
}

static void read_rxcmd_callback(struct urb *urb)
Expand Down

0 comments on commit 42c0454

Please sign in to comment.