summaryrefslogtreecommitdiff
path: root/fs/pstore/platform.c
diff options
context:
space:
mode:
authorHirofumi Nakagawa <nklabs@gmail.com>2017-09-26 03:21:27 +0900
committerAl Viro <viro@zeniv.linux.org.uk>2017-11-05 18:30:49 -0500
commitdfd6fa39d96f5049edb7af26578873e65dbafc9a (patch)
treed857680352fcec58690b8b925575bbfd4b078ffd /fs/pstore/platform.c
parent684e73bee4b5ef626a017c101a20f91cf28a75e6 (diff)
pstore: remove unneeded unlikely()
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>
Diffstat (limited to 'fs/pstore/platform.c')
-rw-r--r--fs/pstore/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c
index 2b21d180157c..7256149af306 100644
--- 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;
}