浏览代码

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>
Artem Bityutskiy 14 年之前
父节点
当前提交
341e262f90
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0 1
      fs/ubifs/debug.c

+ 0 - 1
fs/ubifs/debug.c

@@ -2828,7 +2828,6 @@ static ssize_t write_debugfs_file(struct file *file, const char __user *buf,
 	} else
 	} else
 		return -EINVAL;
 		return -EINVAL;
 
 
-	*ppos += count;
 	return count;
 	return count;
 }
 }