projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
684e73b
)
pstore: remove unneeded unlikely()
author
Hirofumi Nakagawa
<nklabs@gmail.com>
Mon, 25 Sep 2017 18:21:27 +0000
(
03:21
+0900)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sun, 5 Nov 2017 23:30:49 +0000
(18:30 -0500)
IS_ERR() macro it is already including unlikely().
Signed-off-by: Hirofumi Nakagawa <nklabs@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/pstore/platform.c
patch
|
blob
|
history
diff --git
a/fs/pstore/platform.c
b/fs/pstore/platform.c
index
2b21d18
..
7256149
100644
(file)
--- a/
fs/pstore/platform.c
+++ b/
fs/pstore/platform.c
@@
-654,7
+654,7
@@
static int pstore_write_user_compat(struct pstore_record *record,
return -EINVAL;
record->buf = memdup_user(buf, record->size);
- if (
unlikely(IS_ERR(record->buf)
)) {
+ if (
IS_ERR(record->buf
)) {
ret = PTR_ERR(record->buf);
goto out;
}