summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-12-10 13:03:38 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-12-10 14:13:58 +0100
commit01073b0846c7c13438ef9b4d62e0747aed2db15d (patch)
tree6ba70907f296ce3863e0f31cbb43f423e064261d /drivers/gpu/drm/drm_crtc.c
parent0cc0b223e7c9b4642c86d46f20d3d4a4a89bede3 (diff)
downloadlinux-01073b0846c7c13438ef9b4d62e0747aed2db15d.tar.gz
drm: Remove unneeded braces for single statement blocks
Single statement blocks don't need to be enclosed in a pair of braces. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index e8036fd38aee..fa1b1a5b8330 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -2030,11 +2030,9 @@ int drm_mode_getconnector(struct drm_device *dev, void *data,
props_count = connector->properties.count;
- for (i = 0; i < DRM_CONNECTOR_MAX_ENCODER; i++) {
- if (connector->encoder_ids[i] != 0) {
+ for (i = 0; i < DRM_CONNECTOR_MAX_ENCODER; i++)
+ if (connector->encoder_ids[i] != 0)
encoders_count++;
- }
- }
if (out_resp->count_modes == 0) {
connector->funcs->fill_modes(connector,