From 015082dff3c75b7a1fa74203801ffc1ada193ff5 Mon Sep 17 00:00:00 2001 From: Pratik Prajapati Date: Tue, 25 Jul 2017 11:16:55 -0700 Subject: util/inteltool: Clean up checkpatch.pl warnings Remove braces around single statements. "WARNING: braces {} are not necessary for single statement blocks" Change-Id: Id5a7dc3a9672266b66d7f46db2ff087b98fd174d Signed-off-by: Pratik Prajapati Reviewed-on: https://review.coreboot.org/20771 Reviewed-by: Philipp Deppenwiese Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- util/inteltool/inteltool.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'util/inteltool') diff --git a/util/inteltool/inteltool.c b/util/inteltool/inteltool.c index b997ee1b45..2f3fc7dc03 100644 --- a/util/inteltool/inteltool.c +++ b/util/inteltool/inteltool.c @@ -515,10 +515,9 @@ int main(int argc, char *argv[]) printf("Southbridge: %04x:%04x (%s)\n", sb->vendor_id, sb->device_id, sbname); - if (gfx) { + if (gfx) printf("IGD: %04x:%04x (%s)\n", gfx->vendor_id, gfx->device_id, gfxname); - } /* Now do the deed */ @@ -565,21 +564,17 @@ int main(int argc, char *argv[]) printf("\n\n"); } - if (dump_ambs) { + if (dump_ambs) print_ambs(nb, pacc); - } - if (dump_spi) { + if (dump_spi) print_spi(sb); - } - if (dump_gfx) { + if (dump_gfx) print_gfx(gfx); - } - if (dump_ahci) { + if (dump_ahci) print_ahci(ahci); - } if (dump_sgx) print_sgx(); -- cgit v1.2.3