summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-22 11:11:12 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-13 18:23:55 +0200
commit341e262f903afbb8c23133ed6e193ea6254f73c4 (patch)
tree5e30a1697788e1640f2d2d06c2a1a1739a0b8ff2
parentUBIFS: fix oops in lprops dump function (diff)
downloadlinux-341e262f903afbb8c23133ed6e193ea6254f73c4.tar.xz
linux-341e262f903afbb8c23133ed6e193ea6254f73c4.zip
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 <Artem.Bityutskiy@nokia.com>
-rw-r--r--fs/ubifs/debug.c1
1 files changed, 0 insertions, 1 deletions
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;
}