Commit dfd6fa39 authored by Hirofumi Nakagawa's avatar Hirofumi Nakagawa Committed by Al Viro

pstore: remove unneeded unlikely()

IS_ERR() macro it is already including unlikely().
Signed-off-by: default avatarHirofumi Nakagawa <nklabs@gmail.com>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 684e73be
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment