Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 104677
b: refs/heads/master
c: 0487b58
h: refs/heads/master
i:
  104675: 1124db0
v: v3
  • Loading branch information
Alan Cox authored and Linus Torvalds committed Jul 22, 2008
1 parent e8bde89 commit 8d0babe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 9660ea36bdcd4c33174e912a3e649c048d22a3d6
refs/heads/master: 0487b583f268ea43ededd7897dbf519bdcb395ee
4 changes: 2 additions & 2 deletions trunk/drivers/usb/serial/spcp8x5.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,15 +208,15 @@ static inline unsigned int ringbuf_avail_data(struct ringbuf *pb)
{
if (pb == NULL)
return 0;
return ((pb->buf_size + pb->buf_put - pb->buf_get) % pb->buf_size);
return (pb->buf_size + pb->buf_put - pb->buf_get) % pb->buf_size;
}

/* get the number of space in the pipo */
static inline unsigned int ringbuf_avail_space(struct ringbuf *pb)
{
if (pb == NULL)
return 0;
return ((pb->buf_size + pb->buf_get - pb->buf_put - 1) % pb->buf_size);
return (pb->buf_size + pb->buf_get - pb->buf_put - 1) % pb->buf_size;
}

/* put count data into pipo */
Expand Down

0 comments on commit 8d0babe

Please sign in to comment.