pool: use {} in all conditional branches if used in one of them
authorDaniel Mack <zonque@gmail.com>
Tue, 17 Dec 2013 19:24:00 +0000 (20:24 +0100)
committerDaniel Mack <zonque@gmail.com>
Tue, 17 Dec 2013 19:24:00 +0000 (20:24 +0100)
pool.c

diff --git a/pool.c b/pool.c
index 24258f36976e57b723239be272db64b78d28b416..eaf32235004f4efc5fa3a8adf0d65b9270e488a6 100644 (file)
--- a/pool.c
+++ b/pool.c
@@ -198,9 +198,9 @@ static int kdbus_pool_alloc_slice(struct kdbus_pool *pool,
                if (slice_size < s->size) {
                        found = n;
                        n = n->rb_left;
-               } else if (slice_size > s->size)
+               } else if (slice_size > s->size) {
                        n = n->rb_right;
-               else {
+               else {
                        found = n;
                        break;
                }