projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1321657
)
UBIFS: do not change debugfs file position
author
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 22 Apr 2011 09:11:12 +0000
(12:11 +0300)
committer
Artem Bityutskiy
<Artem.Bityutskiy@nokia.com>
Fri, 13 May 2011 16:23:55 +0000
(19:23 +0300)
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>
fs/ubifs/debug.c
patch
|
blob
|
history
diff --git
a/fs/ubifs/debug.c
b/fs/ubifs/debug.c
index 4062ec602632779e0b62223fadc07c445c245215..f7515bd38b4f52854095c0135dcb123bf8835fd1 100644
(file)
--- 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,
} else
return -EINVAL;
- *ppos += count;
return count;
}