tree 356769be4834e02ce77850329896fe35dc2e4c1e
parent 1c30385ae479ec4774bdc1048726aeb15cde0d21
author Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]> Thu, 14 Jul 2005 
14:33:41 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Thu, 14 Jul 2005 23:00:25 -0700

[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: Paolo 'Blaisorblade' Giarrusso <[EMAIL PROTECTED]>
Cc: Jeff Dike <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 fs/hppfs/hppfs_kern.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/hppfs/hppfs_kern.c b/fs/hppfs/hppfs_kern.c
--- a/fs/hppfs/hppfs_kern.c
+++ b/fs/hppfs/hppfs_kern.c
@@ -233,7 +233,7 @@ static ssize_t read_proc(struct file *fi
                set_fs(USER_DS);
 
        if(ppos) *ppos = file->f_pos;
-       return(n);
+       return n;
 }
 
 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, c
                err = os_read_file(fd, new_buf, cur);
                if(err < 0){
                        printk("hppfs_read : read failed, errno = %d\n",
-                              count);
+                              err);
                        n = err;
                        goto out_free;
                }
@@ -271,7 +271,7 @@ static ssize_t hppfs_read_file(int fd, c
  out_free:
        kfree(new_buf);
  out:
-       return(n);
+       return n;
 }
 
 static ssize_t hppfs_read(struct file *file, char *buf, size_t count,
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to