[PATCH] UBIFS: do not change debugfs file position
Artem Bityutskiy
dedekind1 at gmail.com
Sun Apr 24 06:02:17 EDT 2011
From: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
This patch is a tiny improvement which removes few bytes of code.
UBIFS debugfs files are non-seekable and the file position is ignored,
so do not increase it in the write handler.
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
---
fs/ubifs/debug.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c
index ba4d795..d64cd21 100644
--- a/fs/ubifs/debug.c
+++ b/fs/ubifs/debug.c
@@ -2822,7 +2822,6 @@ static ssize_t write_debugfs_file(struct file *file, const char __user *buf,
} else
return -EINVAL;
- *ppos += count;
return count;
}
--
1.7.4.2
More information about the linux-mtd
mailing list