Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 195527
b: refs/heads/master
c: e421fe9
h: refs/heads/master
i:
  195525: 2e264f0
  195523: 555b29d
  195519: 45faa97
v: v3
  • Loading branch information
Johan Hovold authored and Greg Kroah-Hartman committed May 20, 2010
1 parent 2f87297 commit b4375ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: f26c2889a4d937371e2ec9b5690ac407f0496634
refs/heads/master: e421fe97adf96a2b1f9d89140ec3e184f0cb7d7c
4 changes: 3 additions & 1 deletion trunk/drivers/usb/serial/ir-usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ static int ir_prepare_write_buffer(struct usb_serial_port *port,
void *dest, size_t size)
{
unsigned char *buf = dest;
int count;

/*
* The first byte of the packet we send to the device contains an
Expand All @@ -317,8 +318,9 @@ static int ir_prepare_write_buffer(struct usb_serial_port *port,
*/
*buf = ir_xbof | ir_baud;

return kfifo_out_locked(&port->write_fifo, buf + 1, size - 1,
count = kfifo_out_locked(&port->write_fifo, buf + 1, size - 1,
&port->lock);
return count + 1;
}

static void ir_process_read_urb(struct urb *urb)
Expand Down

0 comments on commit b4375ba

Please sign in to comment.