drm: Remove unneeded braces for single statement blocks
authorThierry Reding <treding@nvidia.com>
Wed, 10 Dec 2014 12:03:38 +0000 (13:03 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 10 Dec 2014 13:13:58 +0000 (14:13 +0100)
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>
drivers/gpu/drm/drm_crtc.c

index e8036fd38aee125c7370daaf6441a4a483e50fe1..fa1b1a5b83300872b938f96b520d0bce3a26083c 100644 (file)
@@ -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,