提交 0487b583 编写于 作者: A Alan Cox 提交者: Linus Torvalds

tty-usb-spcp8x5: Minor coding style

Signed-off-by: NAlan Cox <alan@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册