mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] vfs: remove unneeded unlikely()
@ 2017-09-25 18:21 Hirofumi Nakagawa
  2017-09-25 18:21 ` [PATCH 2/2] pstore: " Hirofumi Nakagawa
  0 siblings, 1 reply; 2+ messages in thread
From: Hirofumi Nakagawa @ 2017-09-25 18:21 UTC (permalink / raw)
  To: viro, keescook, anton, ccross, tony.luck, linux-fsdevel, linux-kernel
  Cc: Hirofumi Nakagawa

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-25 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 18:21 [PATCH 1/2] vfs: remove unneeded unlikely() Hirofumi Nakagawa
2017-09-25 18:21 ` [PATCH 2/2] pstore: " Hirofumi Nakagawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome