UBIFS: do not change debugfs file position
Subsystems (2)
PATCH 1/1 UBIFS: do not change debugfs file position
From: Artem Bityutskiy <[email protected]>
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 <[email protected]>
--- fs/ubifs/debug.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
fs/ubifs/debug.c +0 -1
@@ -2822,7 +2822,6 @@ static ssize_t write_debugfs_file(struct file *file, const char __user *buf, }else return -EINVAL ; - *ppos += count;return count; }
Signature · 1 line
1.7.4.2