Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 9473
b: refs/heads/master
c: eacaa1f
h: refs/heads/master
i:
  9471: 4661b39
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Sep 30, 2005
1 parent b5b18a9 commit d25871b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 46d7031ecb8a8360b0022abd8014f38cc1197166
refs/heads/master: eacaa1f5aa4a41a48349f55abcd9258506943e76
12 changes: 1 addition & 11 deletions trunk/kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -968,8 +968,6 @@ static ssize_t cpuset_common_file_read(struct file *file, char __user *buf,
char *page;
ssize_t retval = 0;
char *s;
char *start;
ssize_t n;

if (!(page = (char *)__get_free_page(GFP_KERNEL)))
return -ENOMEM;
Expand Down Expand Up @@ -999,15 +997,7 @@ static ssize_t cpuset_common_file_read(struct file *file, char __user *buf,
*s++ = '\n';
*s = '\0';

start = page + *ppos;
n = s - start;

/* Do nothing if *ppos is at the eof or beyond the eof. */
if (n <= 0)
goto out;

retval = n - copy_to_user(buf, start, min(n, nbytes));
*ppos += retval;
retval = simple_read_from_buffer(buf, nbytes, ppos, page, s - page);
out:
free_page((unsigned long)page);
return retval;
Expand Down

0 comments on commit d25871b

Please sign in to comment.