input: vsense: return proc read len correctly
authorGrazvydas Ignotas <notasas@gmail.com>
Fri, 27 Apr 2012 22:16:06 +0000 (01:16 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 27 Apr 2012 22:16:47 +0000 (01:16 +0300)
drivers/input/misc/vsense.c

index 737cf47..a023fec 100644 (file)
@@ -248,7 +248,7 @@ static int vsense_proc_mode_read(char *page, char **start, off_t off, int count,
        }
 
        *eof = 1;
-       return len + 1;
+       return len;
 }
 
 static int vsense_proc_mode_write(struct file *file, const char __user *buffer,
@@ -305,7 +305,7 @@ static int vsense_proc_int_read(char *page, char **start, off_t off,
 
        len = sprintf(page, "%d\n", *val);
        *eof = 1;
-       return len + 1;
+       return len;
 }
 
 static int vsense_proc_int_write(const char __user *buffer,