From 4430f9f75d81007f8748327526522c8c774d10b3 Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Thu, 9 Mar 2017 10:00:30 -0800 Subject: soc/intel/apollolake: Remove unnecessary braces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix the following warnings detected by checkpatch.pl: WARNING: braces {} are not necessary for any arm of this statement WARNING: braces {} are not necessary for single statement blocks TEST=Build for reef Change-Id: Ifab09c023faa7da215945f1aedd391f4b2a1a04c Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18723 Tested-by: build bot (Jenkins) Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Martin Roth --- src/soc/intel/apollolake/lpc.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/soc/intel/apollolake/lpc.c') diff --git a/src/soc/intel/apollolake/lpc.c b/src/soc/intel/apollolake/lpc.c index 5455dedf1d..810c4c9af3 100644 --- a/src/soc/intel/apollolake/lpc.c +++ b/src/soc/intel/apollolake/lpc.c @@ -117,9 +117,8 @@ static void loop_resources(struct device *dev) for (res = dev->resource_list; res; res = res->next) { - if (res->flags & IORESOURCE_IO) { + if (res->flags & IORESOURCE_IO) lpc_open_pmio_window(res->base, res->size); - } if (res->flags & IORESOURCE_MEM) { /* Check if this is already decoded. */ @@ -143,9 +142,8 @@ static void set_child_resources(struct device *dev) struct device *child; for (link = dev->link_list; link; link = link->next) { - for (child = link->children; child; child = child->sibling) { + for (child = link->children; child; child = child->sibling) loop_resources(child); - } } } -- cgit v1.2.3