From patchwork Sun Apr 24 10:02:17 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: UBIFS: do not change debugfs file position From: Artem Bityutskiy X-Patchwork-Id: 92653 Message-Id: <1303639337-15836-1-git-send-email-dedekind1@gmail.com> To: MTD list Date: Sun, 24 Apr 2011 13:02:17 +0300 From: Artem Bityutskiy 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 --- 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; }