From: Artem Bityutskiy Date: Fri, 22 Apr 2011 09:11:12 +0000 (+0300) Subject: UBIFS: do not change debugfs file position X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=341e262f903afbb8c23133ed6e193ea6254f73c4;p=deliverable%2Flinux.git UBIFS: do not change debugfs file position 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 --- diff --git a/fs/ubifs/debug.c b/fs/ubifs/debug.c index 4062ec602632..f7515bd38b4f 100644 --- a/fs/ubifs/debug.c +++ b/fs/ubifs/debug.c @@ -2828,7 +2828,6 @@ static ssize_t write_debugfs_file(struct file *file, const char __user *buf, } else return -EINVAL; - *ppos += count; return count; }