summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-22 09:11:12 (GMT)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-13 16:23:55 (GMT)
commit341e262f903afbb8c23133ed6e193ea6254f73c4 (patch)
tree5e30a1697788e1640f2d2d06c2a1a1739a0b8ff2 /fs
parent1321657d8f843641529eff26e25722158cc29349 (diff)
downloadlinux-341e262f903afbb8c23133ed6e193ea6254f73c4.tar.xz
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>
Diffstat (limited to 'fs')
-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 4062ec6..f7515bd 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;
}