drm/i915: Add some curly braces
Subsystems (2)
PATCH 1/1 drm/i915: Add some curly braces
From: Ville Syrjälä <[email protected]>
intel_enable_pipe() looks rather confusing when one side doesn't have the curly braces, and the other one does. And what's even worse, there's another if-else inside the braceless side. Let's put braces around it to make it clear which branch goes where.
--- drivers/gpu/drm/i915/intel_display.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/i915/intel_display.c +2 -2
@@ -1959,12 +1959,12 @@ static void intel_enable_pipe(struct intel_crtc *crtc)* a plane. On ILK+ the pipe PLLs are integrated, so we don't * need the check. */ -if (HAS_GMCH_DISPLAY (dev_priv)) +if (HAS_GMCH_DISPLAY (dev_priv)) {if (intel_crtc_has_type (crtc->config,INTEL_OUTPUT_DSI ))assert_dsi_pll_enabled (dev_priv);else assert_pll_enabled (dev_priv, pipe); -else { + }else {if (crtc->config->has_pch_encoder) {/* if driving the PCH, we need FDI enabled */ assert_fdi_rx_pll_enabled (dev_priv, pch_transcoder);
Signature · 6 lines
2.7.4 _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · On Fri, Aug 05, 2016 at 08:41:34PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
intel_enable_pipe()looks rather confusing when one side doesn't have the curly braces, and the other one does. And what's even worse, there's another if-else inside the braceless side. Let's put braces around it to make it clear which branch goes where.Signed-off-by Ville Syrjälä <[email protected]>
Easiest review of the day.
-Chris
Signature · 5 lines
Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Quoted 8 lines · Chris Wilson
Quoted 7 lines · On Fri, Aug 05, 2016 at 08:41:34PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
intel_enable_pipe()looks rather confusing when one side doesn't have the curly braces, and the other one does. And what's even worse, there's another if-else inside the braceless side. Let's put braces around it to make it clear which branch goes where.
Quoted 6 lines
Quoted 1 line
Signed-off-by Ville Syrjälä <[email protected]>Easiest review of the day.
Reviewed-by Chris Wilson <[email protected]>-Chris
I was just about getting started to do my first review!
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Ville Syrjälä
AppliedQuoted 8 lines · Chris Wilson
Quoted 7 lines · On Fri, Aug 05, 2016 at 08:41:34PM +0300, [email protected] wrote:
From: Ville Syrjälä <[email protected]>
intel_enable_pipe()looks rather confusing when one side doesn't have the curly braces, and the other one does. And what's even worse, there's another if-else inside the braceless side. Let's put braces around it to make it clear which branch goes where.
Quoted 4 lines
Quoted 1 line
Signed-off-by Ville Syrjälä <[email protected]>Easiest review of the day.
Reviewed-by Chris Wilson <[email protected]>
Pushed to dinq. Thanks for the review.
Quoted 4 lines
-Chris
Signature · 1 line
Chris Wilson, Intel Open Source Technology Centre
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Patchwork
CI✗ Ro.CI.BAT: failure for drm/i915: Add some curly braces
In reply to [email protected]== Series Details ==
== Series Details ==
Series: drm/i915: Add some curly braces
URL : https://patchwork.freedesktop.org/series/10727/
State : failure
== Summary ==
Series 10727v1 drm/i915: Add some curly braces
http://patchwork.freedesktop.org/api/1.0/series/10727/revisions/1/mbox
Test kms_cursor_legacy:
Subgroup basic-cursor-vs-flip-varying-size:
pass -> FAIL (ro-ilk1-i5-650)
Subgroup basic-flip-vs-cursor-legacy:
pass -> FAIL (ro-skl3-i5-6260u)
fail -> PASS (ro-bdw-i5-5250u)
Subgroup basic-flip-vs-cursor-varying-size:
fail -> PASS (ro-skl3-i5-6260u)fi-kbl-qkkr total:244 pass:185 dwarn:29 dfail:0 fail:3 skip:27 ro-bdw-i5-5250u total:240 pass:219 dwarn:4 dfail:0 fail:1 skip:16 ro-bdw-i7-5557U total:240 pass:224 dwarn:0 dfail:0 fail:0 skip:16 ro-bdw-i7-5600u total:240 pass:207 dwarn:0 dfail:0 fail:1 skip:32 ro-bsw-n3050 total:240 pass:194 dwarn:0 dfail:0 fail:4 skip:42 ro-byt-n2820 total:240 pass:197 dwarn:0 dfail:0 fail:3 skip:40 ro-hsw-i3-4010u total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-hsw-i7-4770r total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-ilk-i7-620lm total:240 pass:173 dwarn:1 dfail:0 fail:1 skip:65 ro-ilk1-i5-650 total:235 pass:173 dwarn:0 dfail:0 fail:2 skip:60 ro-ivb-i7-3770 total:240 pass:205 dwarn:0 dfail:0 fail:0 skip:35 ro-ivb2-i7-3770 total:240 pass:209 dwarn:0 dfail:0 fail:0 skip:31 ro-skl3-i5-6260u total:240 pass:223 dwarn:0 dfail:0 fail:3 skip:14 ro-snb-i7-2620M total:240 pass:198 dwarn:0 dfail:0 fail:1 skip:41
Results at /archive/results/CI_IGT_test/RO_Patchwork_1737/
b834992 drm-intel-nightly: 2016y-08m-05d-20h-40m-44s UTC integration manifest ea86ad6 drm/i915: Add some curly braces
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
Re: ✗ Ro.CI.BAT: failure for drm/i915: Add some curly braces
Quoted 6 lines · Patchwork
== Series Details ==
Series: drm/i915: Add some curly braces
URL : https://patchwork.freedesktop.org/series/10727/
State : failure
Quoted 8 lines
== Summary ==
Series 10727v1 drm/i915: Add some curly braces
http://patchwork.freedesktop.org/api/1.0/series/10727/revisions/1/mboxTest
kms_cursor_legacy:Subgroup basic-cursor-vs-flip-varying-size: pass -> FAIL (ro-ilk1-i5-650)
(kms_cursor_legacy:8068) DEBUG: Test requirement passed: target > 1
(kms_cursor_legacy:8068) DEBUG: Using a target of 32 cursor updates per half-vblank (kms_cursor_legacy:8068) WARNING: page flip 8 was delayed, missed 2 frames
(kms_cursor_legacy:8068) CRITICAL: Test assertion failure function basic_cursor_vs_flip, file kms_cursor_legacy.c:670:
(kms_cursor_legacy:8068) CRITICAL: Failed assertion: vbl.sequence == vblank_start + 60 (kms_cursor_legacy:8068) CRITICAL: error: 11705 != 11703
https://bugs.freedesktop.org/show_bug.cgi?id=96701
Quoted 2 lines
Subgroup basic-flip-vs-cursor-legacy:
pass -> FAIL (ro-skl3-i5-6260u)(kms_cursor_legacy:9238) DEBUG: Test requirement passed: target > 1
(kms_cursor_legacy:9238) DEBUG: Using a target of 64 cursor updates per half-vblank (kms_cursor_legacy:9238) CRITICAL: Test assertion failure function basic_flip_vs_cursor, file kms_cursor_legacy.c:514:
(kms_cursor_legacy:9238) CRITICAL: Failed assertion: get_vblank(display->drm_fd, pipe, 0) == vblank_start (kms_cursor_legacy:9238) CRITICAL: error: 11832 != 11831
https://bugs.freedesktop.org/show_bug.cgi?id=97188
Quoted 23 lines
fail -> PASS (ro-bdw-i5-5250u) Subgroup basic-flip-vs-cursor-varying-size: fail -> PASS (ro-skl3-i5-6260u)fi-kbl-qkkr total:244 pass:185 dwarn:29 dfail:0 fail:3 skip:27 ro-bdw-i5-5250u total:240 pass:219 dwarn:4 dfail:0 fail:1 skip:16 ro-bdw-i7-5557U total:240 pass:224 dwarn:0 dfail:0 fail:0 skip:16 ro-bdw-i7-5600u total:240 pass:207 dwarn:0 dfail:0 fail:1 skip:32 ro-bsw-n3050 total:240 pass:194 dwarn:0 dfail:0 fail:4 skip:42 ro-byt-n2820 total:240 pass:197 dwarn:0 dfail:0 fail:3 skip:40 ro-hsw-i3-4010u total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-hsw-i7-4770r total:240 pass:214 dwarn:0 dfail:0 fail:0 skip:26 ro-ilk-i7-620lm total:240 pass:173 dwarn:1 dfail:0 fail:1 skip:65 ro-ilk1-i5-650 total:235 pass:173 dwarn:0 dfail:0 fail:2 skip:60 ro-ivb-i7-3770 total:240 pass:205 dwarn:0 dfail:0 fail:0 skip:35 ro-ivb2-i7-3770 total:240 pass:209 dwarn:0 dfail:0 fail:0 skip:31 ro-skl3-i5-6260u total:240 pass:223 dwarn:0 dfail:0 fail:3 skip:14 ro-snb-i7-2620M total:240 pass:198 dwarn:0 dfail:0 fail:1 skip:41Results at /archive/results/CI_IGT_test/RO_Patchwork_1737/
b834992 drm-intel-nightly: 2016y-08m-05d-20h-40m-44s UTC integration manifest ea86ad6 drm/i915: Add some curly braces
Signature · 6 lines
Ville Syrjälä Intel OTC _______________________________________________ Intel-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/intel-gfx