diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-04-22 05:11:12 -0400 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2011-05-13 12:23:55 -0400 |
commit | 341e262f903afbb8c23133ed6e193ea6254f73c4 (patch) | |
tree | 5e30a1697788e1640f2d2d06c2a1a1739a0b8ff2 /fs/ubifs/debug.c | |
parent | 1321657d8f843641529eff26e25722158cc29349 (diff) |
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.c | 1 |
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, | |||
2828 | } else | 2828 | } else |
2829 | return -EINVAL; | 2829 | return -EINVAL; |
2830 | 2830 | ||
2831 | *ppos += count; | ||
2832 | return count; | 2831 | return count; |
2833 | } | 2832 | } |
2834 | 2833 | ||