diff --git a/fs/pstore/platform.c b/fs/pstore/platform.c index 2b21d180157c16a823f2f21d41e31d820bf77232..7256149af306307c1ad44b7aa507b50d8df0ff38 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; }