Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1739207 > unrolled thread
| Started by | Hirofumi Nakagawa <nklabs@gmail.com> |
|---|---|
| First post | 2017-09-25 20:30 +0200 |
| Last post | 2017-09-25 20:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 2/2] pstore: remove unneeded unlikely() Hirofumi Nakagawa <nklabs@gmail.com> - 2017-09-25 20:30 +0200
| From | Hirofumi Nakagawa <nklabs@gmail.com> |
|---|---|
| Date | 2017-09-25 20:30 +0200 |
| Subject | [PATCH 2/2] pstore: remove unneeded unlikely() |
| Message-ID | <utGiK-1D4-7@gated-at.bofh.it> |
IS_ERR() macro it is already including unlikely().
Signed-off-by: Hirofumi Nakagawa <nklabs@gmail.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
Back to top | Article view | linux.kernel
csiph-web