提交 dfd6fa39 编写于 作者: H Hirofumi Nakagawa 提交者: Al Viro

pstore: remove unneeded unlikely()

IS_ERR() macro it is already including unlikely().
Signed-off-by: NHirofumi Nakagawa <nklabs@gmail.com>
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册