mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
vfs: remove unneeded unlikely()
IS_ERR() macro it is already including unlikely(). Signed-off-by: Hirofumi Nakagawa <nklabs@gmail.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
f175f307dd
commit
684e73bee4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user