Skip to content

Commit

Permalink
drm: Remove unneeded braces for single statement blocks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Daniel Vetter committed Dec 10, 2014
1 parent 0cc0b22 commit 01073b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/gpu/drm/drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 01073b0

Please sign in to comment.