提交 20188dd9 编写于 作者: B Benjamin Romer 提交者: Greg Kroah-Hartman

staging: unisys: fix line spacing in charqueue.c

Clean up the extraneous blank lines in charqueue.c.
Signed-off-by: NBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 be61a0d7
...@@ -25,8 +25,6 @@ ...@@ -25,8 +25,6 @@
#define IS_EMPTY(charqueue) (charqueue->head == charqueue->tail) #define IS_EMPTY(charqueue) (charqueue->head == charqueue->tail)
struct CHARQUEUE_Tag { struct CHARQUEUE_Tag {
int alloc_size; int alloc_size;
int nslots; int nslots;
...@@ -35,8 +33,6 @@ struct CHARQUEUE_Tag { ...@@ -35,8 +33,6 @@ struct CHARQUEUE_Tag {
unsigned char buf[0]; unsigned char buf[0];
}; };
CHARQUEUE *visor_charqueue_create(ulong nslots) CHARQUEUE *visor_charqueue_create(ulong nslots)
{ {
int alloc_size = sizeof(CHARQUEUE) + nslots + 1; int alloc_size = sizeof(CHARQUEUE) + nslots + 1;
...@@ -55,8 +51,6 @@ CHARQUEUE *visor_charqueue_create(ulong nslots) ...@@ -55,8 +51,6 @@ CHARQUEUE *visor_charqueue_create(ulong nslots)
} }
EXPORT_SYMBOL_GPL(visor_charqueue_create); EXPORT_SYMBOL_GPL(visor_charqueue_create);
void visor_charqueue_enqueue(CHARQUEUE *charqueue, unsigned char c) void visor_charqueue_enqueue(CHARQUEUE *charqueue, unsigned char c)
{ {
int alloc_slots = charqueue->nslots+1; /* 1 slot is always empty */ int alloc_slots = charqueue->nslots+1; /* 1 slot is always empty */
...@@ -71,8 +65,6 @@ void visor_charqueue_enqueue(CHARQUEUE *charqueue, unsigned char c) ...@@ -71,8 +65,6 @@ void visor_charqueue_enqueue(CHARQUEUE *charqueue, unsigned char c)
} }
EXPORT_SYMBOL_GPL(visor_charqueue_enqueue); EXPORT_SYMBOL_GPL(visor_charqueue_enqueue);
BOOL visor_charqueue_is_empty(CHARQUEUE *charqueue) BOOL visor_charqueue_is_empty(CHARQUEUE *charqueue)
{ {
BOOL b; BOOL b;
...@@ -84,8 +76,6 @@ BOOL visor_charqueue_is_empty(CHARQUEUE *charqueue) ...@@ -84,8 +76,6 @@ BOOL visor_charqueue_is_empty(CHARQUEUE *charqueue)
} }
EXPORT_SYMBOL_GPL(visor_charqueue_is_empty); EXPORT_SYMBOL_GPL(visor_charqueue_is_empty);
static int charqueue_dequeue_1(CHARQUEUE *charqueue) static int charqueue_dequeue_1(CHARQUEUE *charqueue)
{ {
int alloc_slots = charqueue->nslots + 1; /* 1 slot is always empty */ int alloc_slots = charqueue->nslots + 1; /* 1 slot is always empty */
...@@ -96,8 +86,6 @@ static int charqueue_dequeue_1(CHARQUEUE *charqueue) ...@@ -96,8 +86,6 @@ static int charqueue_dequeue_1(CHARQUEUE *charqueue)
return charqueue->buf[charqueue->tail]; return charqueue->buf[charqueue->tail];
} }
int charqueue_dequeue(CHARQUEUE *charqueue) int charqueue_dequeue(CHARQUEUE *charqueue)
{ {
int rc; int rc;
...@@ -108,8 +96,6 @@ int charqueue_dequeue(CHARQUEUE *charqueue) ...@@ -108,8 +96,6 @@ int charqueue_dequeue(CHARQUEUE *charqueue)
return rc; return rc;
} }
int visor_charqueue_dequeue_n(CHARQUEUE *charqueue, unsigned char *buf, int n) int visor_charqueue_dequeue_n(CHARQUEUE *charqueue, unsigned char *buf, int n)
{ {
int rc, counter = 0, c; int rc, counter = 0, c;
...@@ -132,8 +118,6 @@ int visor_charqueue_dequeue_n(CHARQUEUE *charqueue, unsigned char *buf, int n) ...@@ -132,8 +118,6 @@ int visor_charqueue_dequeue_n(CHARQUEUE *charqueue, unsigned char *buf, int n)
} }
EXPORT_SYMBOL_GPL(visor_charqueue_dequeue_n); EXPORT_SYMBOL_GPL(visor_charqueue_dequeue_n);
void visor_charqueue_destroy(CHARQUEUE *charqueue) void visor_charqueue_destroy(CHARQUEUE *charqueue)
{ {
if (charqueue == NULL) if (charqueue == NULL)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册