提交 341e262f 编写于 作者: A Artem Bityutskiy

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: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 1321657d
......@@ -2828,7 +2828,6 @@ static ssize_t write_debugfs_file(struct file *file, const char __user *buf,
} else
return -EINVAL;
*ppos += count;
return count;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册