summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPratik Prajapati <pratikkumar.v.prajapati@intel.com>2017-07-25 11:16:55 -0700
committerMartin Roth <martinroth@google.com>2017-07-28 16:21:40 +0000
commit015082dff3c75b7a1fa74203801ffc1ada193ff5 (patch)
treea139adbd87fc130137917c5958e44bafffd2491f /util
parent91664d4d6fa42cb8606bae982805d9d0fb22c57a (diff)
downloadcoreboot-015082dff3c75b7a1fa74203801ffc1ada193ff5.tar.xz
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 <pratikkumar.v.prajapati@intel.com> Reviewed-on: https://review.coreboot.org/20771 Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'util')
-rw-r--r--util/inteltool/inteltool.c15
1 files changed, 5 insertions, 10 deletions
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();