@@ -594,8 +594,9 @@ static int i915_displayport_test_active_show(struct seq_file *m, void *data)
seq_puts(m, "1");
else
seq_puts(m, "0");
- } else
+ } else {
seq_puts(m, "0");
+ }
}
drm_connector_list_iter_end(&conn_iter);
@@ -662,8 +663,9 @@ static int i915_displayport_test_data_show(struct seq_file *m, void *data)
seq_printf(m, "level: %02x\n",
intel_dp->train_set[0]);
}
- } else
+ } else {
seq_puts(m, "0");
+ }
}
drm_connector_list_iter_end(&conn_iter);
@@ -693,8 +695,9 @@ static int i915_displayport_test_type_show(struct seq_file *m, void *data)
if (encoder && connector->status == connector_status_connected) {
intel_dp = enc_to_intel_dp(encoder);
seq_printf(m, "%02lx\n", intel_dp->compliance.test_type);
- } else
+ } else {
seq_puts(m, "0");
+ }
}
drm_connector_list_iter_end(&conn_iter);
Apply some style fixes on top of the previous code movement. Signed-off-by: Jani Nikula <jani.nikula@intel.com> --- drivers/gpu/drm/i915/display/intel_dp_test.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)