Skip to content

Commit

Permalink
drivers: char: mem: Fix Missing blank line issues
Browse files Browse the repository at this point in the history
Fixes "Missing a blank line after declarations" reported by
checkpatch.

This patch introduces no functional changes.

Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Rob Ward authored and Greg Kroah-Hartman committed Jan 12, 2015
1 parent 35b6c7e commit 6a0061b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/char/mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,7 @@ static ssize_t write_port(struct file *file, const char __user *buf,
return -EFAULT;
while (count-- > 0 && i < 65536) {
char c;

if (__get_user(c, tmp)) {
if (tmp > buf)
break;
Expand Down Expand Up @@ -625,6 +626,7 @@ static ssize_t read_iter_zero(struct kiocb *iocb, struct iov_iter *iter)

while (iov_iter_count(iter)) {
size_t chunk = iov_iter_count(iter), n;

if (chunk > PAGE_SIZE)
chunk = PAGE_SIZE; /* Just for latency reasons */
n = iov_iter_zero(chunk, iter);
Expand Down

0 comments on commit 6a0061b

Please sign in to comment.