From: Hirofumi Nakagawa Date: Mon, 25 Sep 2017 18:21:27 +0000 (+0900) Subject: pstore: remove unneeded unlikely() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=dfd6fa39d96f5049edb7af26578873e65dbafc9a;p=linux.git pstore: remove unneeded unlikely() IS_ERR() macro it is already including unlikely(). Signed-off-by: Hirofumi Nakagawa Signed-off-by: Al Viro --- diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 2b21d180157c1..7256149af3063 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; }