[Skiboot] [PATCH 1/5] mem_region: fix inconsistent indenting
Stewart Smith
stewart at linux.vnet.ibm.com
Fri Jul 8 10:38:31 AEST 2016
Found by smatch static analysis (http://smatch.sourceforge.net/):
core/mem_region.c:561 mem_check() warn: inconsistent indenting
core/mem_region.c:569 mem_check() warn: inconsistent indenting
Signed-off-by: Stewart Smith <stewart at linux.vnet.ibm.com>
---
core/mem_region.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/mem_region.c b/core/mem_region.c
index 40b486b013c6..0c482b01dea8 100644
--- a/core/mem_region.c
+++ b/core/mem_region.c
@@ -558,15 +558,15 @@ bool mem_check(const struct mem_region *region)
region->name, hdr->free ? "free" : "alloc",
hdr, hdr_location(hdr),
hdr->num_longs * sizeof(long));
- return false;
- }
+ return false;
+ }
if ((unsigned long)hdr + hdr->num_longs * sizeof(long) >
region->start + region->len) {
prerror("Region '%s' %s %p (%s) oversize %zu\n",
region->name, hdr->free ? "free" : "alloc",
hdr, hdr_location(hdr),
hdr->num_longs * sizeof(long));
- return false;
+ return false;
}
if (hdr->free) {
if (hdr->prev_free || prev_free) {
--
2.1.4
More information about the Skiboot
mailing list