Skip to contentSkip to conversation

UBIFS: do not change debugfs file position

PATCH New Artem Bityutskiy 1 participant 1 message Apr 24, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 fs/ubifs/debug.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
fs/ubifs/debug.c +0 -1
index ba4d795..d64cd21 100644
@@ -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