diff options
author | Hirofumi Nakagawa <nklabs@gmail.com> | 2017-09-26 03:21:27 +0900 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-11-05 18:30:49 -0500 |
commit | dfd6fa39d96f5049edb7af26578873e65dbafc9a (patch) | |
tree | d857680352fcec58690b8b925575bbfd4b078ffd /fs/pstore/platform.c | |
parent | 684e73bee4b5ef626a017c101a20f91cf28a75e6 (diff) | |
download | op-kernel-dev-dfd6fa39d96f5049edb7af26578873e65dbafc9a.zip op-kernel-dev-dfd6fa39d96f5049edb7af26578873e65dbafc9a.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 2b21d18..7256149 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; } |