Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1739208 > 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
[PATCH 1/2] vfs: 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 1/2] vfs: remove unneeded unlikely() |
| Message-ID | <utGiK-1D4-9@gated-at.bofh.it> |
IS_ERR() macro it is already including unlikely(). Signed-off-by: Hirofumi Nakagawa <nklabs@gmail.com> --- fs/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/namei.c b/fs/namei.c index c75ea03ca147..00384488fda1 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -3458,7 +3458,7 @@ static int do_tmpfile(struct nameidata *nd, unsigned flags, goto out; child = vfs_tmpfile(path.dentry, op->mode, op->open_flag); error = PTR_ERR(child); - if (unlikely(IS_ERR(child))) + if (IS_ERR(child)) goto out2; dput(path.dentry); path.dentry = child; -- 2.14.1
Back to top | Article view | linux.kernel
csiph-web