diff mbox

[1/5] mem_region: fix inconsistent indenting

Message ID 1467938315-30100-1-git-send-email-stewart@linux.vnet.ibm.com
State Accepted
Headers show

Commit Message

Stewart Smith July 8, 2016, 12:38 a.m. UTC
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@linux.vnet.ibm.com>
---
 core/mem_region.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

Comments

Stewart Smith July 11, 2016, 3:53 a.m. UTC | #1
Stewart Smith <stewart@linux.vnet.ibm.com> writes:
> 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@linux.vnet.ibm.com>
> ---
>  core/mem_region.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)

Series merged to master as of 281e152
diff mbox

Patch

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) {