mirror of
https://github.com/torvalds/linux.git
synced 2024-10-22 21:20:52 +00:00
ipc: mqueue: remove unnecessary conditionals
iput() already handles null and non-null parameters, so there is no need to use if(). Link: https://lkml.kernel.org/r/20220908185452.76590-1-jingyuwang_vip@163.com Signed-off-by: Jingyu Wang <jingyuwang_vip@163.com> Acked-by: Roman Gushchin <roman.gushchin@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
8f824b4abd
commit
5758478a3d
|
@ -986,8 +986,7 @@ SYSCALL_DEFINE1(mq_unlink, const char __user *, u_name)
|
||||||
|
|
||||||
out_unlock:
|
out_unlock:
|
||||||
inode_unlock(d_inode(mnt->mnt_root));
|
inode_unlock(d_inode(mnt->mnt_root));
|
||||||
if (inode)
|
iput(inode);
|
||||||
iput(inode);
|
|
||||||
mnt_drop_write(mnt);
|
mnt_drop_write(mnt);
|
||||||
out_name:
|
out_name:
|
||||||
putname(name);
|
putname(name);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user