Commit 80e3fce1 authored by Xiaofei Tan's avatar Xiaofei Tan Committed by Greg Kroah-Hartman

tty: tty_buffer: Fix coding style issues of block comments

Fix coding style issues of block comments, reported by checkpatch.pl.
Besides, add a period at the end of the sentenses.
Signed-off-by: default avatarXiaofei Tan <tanxiaofei@huawei.com>
Link: https://lore.kernel.org/r/1620811585-18582-6-git-send-email-tanxiaofei@huawei.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dadc1049
...@@ -170,7 +170,8 @@ static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) ...@@ -170,7 +170,8 @@ static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size)
} }
/* Should possibly check if this fails for the largest buffer we /* Should possibly check if this fails for the largest buffer we
have queued and recycle that ? */ * have queued and recycle that ?
*/
if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit) if (atomic_read(&port->buf.mem_used) > port->buf.mem_limit)
return NULL; return NULL;
p = kmalloc(sizeof(struct tty_buffer) + 2 * size, GFP_ATOMIC); p = kmalloc(sizeof(struct tty_buffer) + 2 * size, GFP_ATOMIC);
...@@ -329,7 +330,8 @@ int tty_insert_flip_string_fixed_flag(struct tty_port *port, ...@@ -329,7 +330,8 @@ int tty_insert_flip_string_fixed_flag(struct tty_port *port,
copied += space; copied += space;
chars += space; chars += space;
/* There is a small chance that we need to split the data over /* There is a small chance that we need to split the data over
several buffers. If this is the case we must loop */ * several buffers. If this is the case we must loop.
*/
} while (unlikely(size > copied)); } while (unlikely(size > copied));
return copied; return copied;
} }
...@@ -366,7 +368,8 @@ int tty_insert_flip_string_flags(struct tty_port *port, ...@@ -366,7 +368,8 @@ int tty_insert_flip_string_flags(struct tty_port *port,
chars += space; chars += space;
flags += space; flags += space;
/* There is a small chance that we need to split the data over /* There is a small chance that we need to split the data over
several buffers. If this is the case we must loop */ * several buffers. If this is the case we must loop.
*/
} while (unlikely(size > copied)); } while (unlikely(size > copied));
return copied; return copied;
} }
......
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