obmc-console: Fix readability-braces-around-statements

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I88d2bdcb15106298d83a1cf7176e069092820f1d
diff --git a/test/ringbuffer-test-utils.c b/test/ringbuffer-test-utils.c
index 56e37ee..fff4325 100644
--- a/test/ringbuffer-test-utils.c
+++ b/test/ringbuffer-test-utils.c
@@ -36,30 +36,35 @@
 	size_t len, total_len;
 	uint8_t *buf;
 
-	if (ctx->ignore_poll)
+	if (ctx->ignore_poll) {
 		return RINGBUFFER_POLL_OK;
+	}
 
-	if (ctx->force_only && !force_len)
+	if (ctx->force_only && !force_len) {
 		return RINGBUFFER_POLL_OK;
+	}
 
 	ctx->count++;
 
 	total_len = 0;
 	for (;;) {
 		len = ringbuffer_dequeue_peek(ctx->rbc, total_len, &buf);
-		if (!len)
+		if (!len) {
 			break;
+		}
 
-		if (ctx->force_only && total_len + len > force_len)
+		if (ctx->force_only && total_len + len > force_len) {
 			len = force_len - total_len;
+		}
 
 		ctx->data = realloc(ctx->data, ctx->len + len);
 		memcpy(ctx->data + ctx->len, buf, len);
 		ctx->len += len;
 		total_len += len;
 
-		if (ctx->force_only && total_len >= force_len)
+		if (ctx->force_only && total_len >= force_len) {
 			break;
+		}
 	}
 	ringbuffer_dequeue_commit(ctx->rbc, total_len);
 
@@ -79,16 +84,19 @@
 		bool has_consumer = false;
 		const char *prefix = "";
 
-		if (rb->tail == i)
+		if (rb->tail == i) {
 			prefix = "tail=>";
+		}
 
 		printf("%6s %02x", prefix, rb->buf[i]);
 		for (j = 0; j < rb->n_consumers; j++) {
 			rbc = rb->consumers[j];
-			if (rbc->pos != i)
+			if (rbc->pos != i) {
 				continue;
-			if (!has_consumer)
+			}
+			if (!has_consumer) {
 				printf(" <=");
+			}
 			printf("c[%d],len=%zd ", j, ringbuffer_len(rbc));
 			has_consumer = true;
 		}