diff options
author | Hirofumi Nakagawa <nklabs@gmail.com> | 2017-09-25 20:21:27 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-06 00:30:49 +0100 |
commit | dfd6fa39d96f5049edb7af26578873e65dbafc9a (patch) | |
tree | d857680352fcec58690b8b925575bbfd4b078ffd /fs/pstore | |
parent | vfs: remove unneeded unlikely() (diff) | |
download | linux-dfd6fa39d96f5049edb7af26578873e65dbafc9a.tar.xz linux-dfd6fa39d96f5049edb7af26578873e65dbafc9a.zip |
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')
-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; } |