[Intel-gfx] [PATCH] drm/i915: Fix braces in conditonal branches
Dhinakaran Pandiyan
dhinakaran.pandiyan at intel.com
Tue Aug 9 22:06:10 UTC 2016
No functional change, just adding braces to all branches of conditional
statement because one of them already had.
---
drivers/gpu/drm/i915/intel_audio.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c
index d32f586..26a795f 100644
--- a/drivers/gpu/drm/i915/intel_audio.c
+++ b/drivers/gpu/drm/i915/intel_audio.c
@@ -335,11 +335,11 @@ static void hsw_audio_codec_enable(struct drm_connector *connector,
tmp &= ~AUD_CONFIG_N_PROG_ENABLE;
if (audio_rate_need_prog(intel_crtc, adjusted_mode)) {
- if (!acomp)
+ if (!acomp) {
rate = 0;
- else if (port >= PORT_A && port <= PORT_E)
+ } else if (port >= PORT_A && port <= PORT_E) {
rate = acomp->aud_sample_rate[port];
- else {
+ } else {
DRM_ERROR("invalid port: %d\n", port);
rate = 0;
}
--
2.5.0
More information about the Intel-gfx
mailing list