summaryrefslogtreecommitdiff
path: root/src/soc/intel/broadwell/igd.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-17 10:43:25 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-17 19:21:35 +0100
commit8a9c7dc08712e71bec5bc92bbaf93bf43126cd0d (patch)
treeedfa1b727a4deab19352c7a1dddeccf672b4e4f4 /src/soc/intel/broadwell/igd.c
parent23602dfd6812dba0499318e1ec25492faa17febb (diff)
soc/intel/broadwell: Fix {}, () and conditional issues
Fix the following errors and warnings detected by checkpatch: ERROR: open brace '{' following struct go on the same line ERROR: return is not a function, parentheses are not required ERROR: do not use assignment in if condition ERROR: trailing statements should be on next line WARNING: else is not generally useful after a break or return WARNING: braces {} are not necessary for single statement blocks WARNING: braces {} are not necessary for any arm of this statement TEST=None Change-Id: I9414341b0c778c252db33f0ef4847b9530681d96 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18884 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/soc/intel/broadwell/igd.c')
-rw-r--r--src/soc/intel/broadwell/igd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/intel/broadwell/igd.c b/src/soc/intel/broadwell/igd.c
index fc044018cf..fa1340fbcf 100644
--- a/src/soc/intel/broadwell/igd.c
+++ b/src/soc/intel/broadwell/igd.c
@@ -530,11 +530,10 @@ static void igd_init(struct device *dev)
/* Late init steps */
igd_cdclk_init(dev, is_broadwell);
- if (is_broadwell) {
+ if (is_broadwell)
reg_script_run_on_dev(dev, broadwell_late_init_script);
- } else {
+ else
reg_script_run_on_dev(dev, haswell_late_init_script);
- }
if (gfx_get_init_done()) {
/*