Skip to content

Commit

Permalink
vfs: remove unneeded unlikely()
Browse files Browse the repository at this point in the history
IS_ERR() macro it is already including unlikely().

Signed-off-by: Hirofumi Nakagawa <[email protected]>
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
hnakagawa authored and Al Viro committed Nov 5, 2017
1 parent f175f30 commit 684e73b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 684e73b

Please sign in to comment.