diff options
author | Hirofumi Nakagawa <nklabs@gmail.com> | 2017-09-25 21:21:27 +0300 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-06 02:30:49 +0300 |
commit | dfd6fa39d96f5049edb7af26578873e65dbafc9a (patch) | |
tree | d857680352fcec58690b8b925575bbfd4b078ffd /fs | |
parent | 684e73bee4b5ef626a017c101a20f91cf28a75e6 (diff) | |
download | linux-dfd6fa39d96f5049edb7af26578873e65dbafc9a.tar.xz |
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')
-rw-r--r-- | fs/pstore/platform.c | 2 |
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; } |