[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20170925182127.11160-2-nklabs@gmail.com>
Date: Tue, 26 Sep 2017 03:21:27 +0900
From: Hirofumi Nakagawa <nklabs@...il.com>
To: viro@...iv.linux.org.uk, keescook@...omium.org, anton@...msg.org,
ccross@...roid.com, tony.luck@...el.com,
linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Hirofumi Nakagawa <nklabs@...il.com>
Subject: [PATCH 2/2] pstore: remove unneeded unlikely()
IS_ERR() macro it is already including unlikely().
Signed-off-by: Hirofumi Nakagawa <nklabs@...il.com>
---
fs/pstore/platform.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.14.1
Powered by blists - more mailing lists