Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 36385
b: refs/heads/master
c: 10a18cd
h: refs/heads/master
i:
  36383: d457c67
v: v3
  • Loading branch information
Thiago Galesi authored and Greg Kroah-Hartman committed Sep 27, 2006
1 parent 9c2bc0b commit 3632a02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 372db8a780f63368c6960a167b7a19aad776d704
refs/heads/master: 10a18cd1a31e34d123d5ae4736a3393432352750
12 changes: 6 additions & 6 deletions trunk/drivers/usb/serial/pl2303.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,10 +1064,10 @@ static void pl2303_buf_clear(struct pl2303_buf *pb)
*/
static unsigned int pl2303_buf_data_avail(struct pl2303_buf *pb)
{
if (pb != NULL)
return ((pb->buf_size + pb->buf_put - pb->buf_get) % pb->buf_size);
else
if (pb == NULL)
return 0;

return ((pb->buf_size + pb->buf_put - pb->buf_get) % pb->buf_size);
}

/*
Expand All @@ -1078,10 +1078,10 @@ static unsigned int pl2303_buf_data_avail(struct pl2303_buf *pb)
*/
static unsigned int pl2303_buf_space_avail(struct pl2303_buf *pb)
{
if (pb != NULL)
return ((pb->buf_size + pb->buf_get - pb->buf_put - 1) % pb->buf_size);
else
if (pb == NULL)
return 0;

return ((pb->buf_size + pb->buf_get - pb->buf_put - 1) % pb->buf_size);
}

/*
Expand Down

0 comments on commit 3632a02

Please sign in to comment.