Commit 0487b583 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

tty-usb-spcp8x5: Minor coding style

Signed-off-by: default avatarAlan Cox <alan@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 9660ea36
...@@ -208,7 +208,7 @@ static inline unsigned int ringbuf_avail_data(struct ringbuf *pb) ...@@ -208,7 +208,7 @@ static inline unsigned int ringbuf_avail_data(struct ringbuf *pb)
{ {
if (pb == NULL) if (pb == NULL)
return 0; 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 */ /* get the number of space in the pipo */
...@@ -216,7 +216,7 @@ static inline unsigned int ringbuf_avail_space(struct ringbuf *pb) ...@@ -216,7 +216,7 @@ static inline unsigned int ringbuf_avail_space(struct ringbuf *pb)
{ {
if (pb == NULL) if (pb == NULL)
return 0; 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 */ /* put count data into pipo */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment