summaryrefslogtreecommitdiffstats
path: root/fs/ubifs/debug.c
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-04-22 12:11:12 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2011-05-13 19:23:55 +0300
commit341e262f903afbb8c23133ed6e193ea6254f73c4 (patch)
tree5e30a1697788e1640f2d2d06c2a1a1739a0b8ff2 /fs/ubifs/debug.c
parent1321657d8f843641529eff26e25722158cc29349 (diff)
downloadlinux-341e262f903afbb8c23133ed6e193ea6254f73c4.tar.gz
linux-341e262f903afbb8c23133ed6e193ea6254f73c4.tar.bz2
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>
Diffstat (limited to 'fs/ubifs/debug.c')
-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;
}