]> git.baikalelectronics.ru Git - kernel.git/commit
ipc: mqueue: remove unnecessary conditionals
authorJingyu Wang <jingyuwang_vip@163.com>
Thu, 8 Sep 2022 18:54:52 +0000 (02:54 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:21:42 +0000 (14:21 -0700)
commitda83f6c12fcac512df55915f9b2891e822a2b3df
tree4a739860546e85f4175cbea4c500fe2f3981e284
parentc581294b842ccca43300d0cd582e7f4392b3c522
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>
ipc/mqueue.c