提交 8e0a2181 编写于 作者: P Paolo 'Blaisorblade' Giarrusso 提交者: Linus Torvalds

[PATCH] uml: fix hppfs error path

Fix the error message to refer to the error code, i.e.  err, not count, plus
add some cosmetical fixes.
Signed-off-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 1c30385a
...@@ -233,7 +233,7 @@ static ssize_t read_proc(struct file *file, char *buf, ssize_t count, ...@@ -233,7 +233,7 @@ static ssize_t read_proc(struct file *file, char *buf, ssize_t count,
set_fs(USER_DS); set_fs(USER_DS);
if(ppos) *ppos = file->f_pos; if(ppos) *ppos = file->f_pos;
return(n); return n;
} }
static ssize_t hppfs_read_file(int fd, char *buf, ssize_t count) static ssize_t hppfs_read_file(int fd, char *buf, ssize_t count)
...@@ -254,7 +254,7 @@ static ssize_t hppfs_read_file(int fd, char *buf, ssize_t count) ...@@ -254,7 +254,7 @@ static ssize_t hppfs_read_file(int fd, char *buf, ssize_t count)
err = os_read_file(fd, new_buf, cur); err = os_read_file(fd, new_buf, cur);
if(err < 0){ if(err < 0){
printk("hppfs_read : read failed, errno = %d\n", printk("hppfs_read : read failed, errno = %d\n",
count); err);
n = err; n = err;
goto out_free; goto out_free;
} }
...@@ -271,7 +271,7 @@ static ssize_t hppfs_read_file(int fd, char *buf, ssize_t count) ...@@ -271,7 +271,7 @@ static ssize_t hppfs_read_file(int fd, char *buf, ssize_t count)
out_free: out_free:
kfree(new_buf); kfree(new_buf);
out: out:
return(n); return n;
} }
static ssize_t hppfs_read(struct file *file, char *buf, size_t count, static ssize_t hppfs_read(struct file *file, char *buf, size_t count,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册