summaryrefslogtreecommitdiff
path: root/ipc/mqueue.c
diff options
context:
space:
mode:
authorSomala Swaraj <somalaswaraj@gmail.com>2020-04-07 06:12:53 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2020-04-07 20:43:45 +0300
commit43afe4d3661b04915aa357c5ab0f2a08718af9fd (patch)
tree5ddff1fa0f667542a95f2cfb680139c239f286cc /ipc/mqueue.c
parent29b46fa3dc57def8af3cec1d4e2984b5150be9d5 (diff)
downloadlinux-43afe4d3661b04915aa357c5ab0f2a08718af9fd.tar.xz
ipc/mqueue.c: fix a brace coding style issue
Signed-off-by: somala swaraj <somalaswaraj@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Link: http://lkml.kernel.org/r/20200301135530.18340-1-somalaswaraj@gmail.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/mqueue.c')
-rw-r--r--ipc/mqueue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ipc/mqueue.c b/ipc/mqueue.c
index 49a05ba3000d..dc8307bf2d74 100644
--- a/ipc/mqueue.c
+++ b/ipc/mqueue.c
@@ -239,11 +239,10 @@ static inline void msg_tree_erase(struct posix_msg_tree_node *leaf,
info->msg_tree_rightmost = rb_prev(node);
rb_erase(node, &info->msg_tree);
- if (info->node_cache) {
+ if (info->node_cache)
kfree(leaf);
- } else {
+ else
info->node_cache = leaf;
- }
}
static inline struct msg_msg *msg_get(struct mqueue_inode_info *info)