提交 6a0061ba 编写于 作者: R Rob Ward 提交者: Greg Kroah-Hartman

drivers: char: mem: Fix Missing blank line issues

Fixes "Missing a blank line after declarations" reported by
checkpatch.

This patch introduces no functional changes.
Signed-off-by: NRob Ward <robert.ward114@googlemail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 35b6c7e4
...@@ -570,6 +570,7 @@ static ssize_t write_port(struct file *file, const char __user *buf, ...@@ -570,6 +570,7 @@ static ssize_t write_port(struct file *file, const char __user *buf,
return -EFAULT; return -EFAULT;
while (count-- > 0 && i < 65536) { while (count-- > 0 && i < 65536) {
char c; char c;
if (__get_user(c, tmp)) { if (__get_user(c, tmp)) {
if (tmp > buf) if (tmp > buf)
break; break;
...@@ -625,6 +626,7 @@ static ssize_t read_iter_zero(struct kiocb *iocb, struct iov_iter *iter) ...@@ -625,6 +626,7 @@ static ssize_t read_iter_zero(struct kiocb *iocb, struct iov_iter *iter)
while (iov_iter_count(iter)) { while (iov_iter_count(iter)) {
size_t chunk = iov_iter_count(iter), n; size_t chunk = iov_iter_count(iter), n;
if (chunk > PAGE_SIZE) if (chunk > PAGE_SIZE)
chunk = PAGE_SIZE; /* Just for latency reasons */ chunk = PAGE_SIZE; /* Just for latency reasons */
n = iov_iter_zero(chunk, iter); n = iov_iter_zero(chunk, iter);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册