diff options
author | Charles Manning <cdhmanning@gmail.com> | 2010-11-08 11:09:07 +1300 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2010-11-08 11:09:07 +1300 |
commit | 25633e8452addb4efafd1dedde957e1b14a07fd9 (patch) | |
tree | 8764bcfae6dc709cb31e987eec61c3bf04f5daa5 /yaffs_allocator.c | |
parent | 6cb99e93f72bbb066c5abb4ab2cc0cd79f56a4f3 (diff) |
yaffs Clean up conditional bracing
If a conditional has braces then all paths have braces even if they only
have one statement.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_allocator.c')
-rw-r--r-- | yaffs_allocator.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/yaffs_allocator.c b/yaffs_allocator.c index 03ede86..b9fe31e 100644 --- a/yaffs_allocator.c +++ b/yaffs_allocator.c @@ -123,8 +123,9 @@ static void yaffs_init_raw_tnodes(struct yaffs_dev *dev) allocator->free_tnodes = NULL; allocator->n_free_tnodes = 0; allocator->n_tnodes_created = 0; - } else + } else { YBUG(); + } } static int yaffs_create_tnodes(struct yaffs_dev *dev, int n_tnodes) @@ -243,8 +244,9 @@ static void yaffs_init_raw_objs(struct yaffs_dev *dev) allocator->allocated_obj_list = NULL; allocator->free_objs = NULL; allocator->n_free_objects = 0; - } else + } else { YBUG(); + } } static void yaffs_deinit_raw_objs(struct yaffs_dev *dev) @@ -371,8 +373,9 @@ void yaffs_deinit_raw_tnodes_and_objs(struct yaffs_dev *dev) YFREE(dev->allocator); dev->allocator = NULL; - } else + } else { YBUG(); + } } void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev) @@ -386,8 +389,9 @@ void yaffs_init_raw_tnodes_and_objs(struct yaffs_dev *dev) yaffs_init_raw_tnodes(dev); yaffs_init_raw_objs(dev); } - } else + } else { YBUG(); + } } #endif |