summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-08-28 21:20:19 +1000
committerDave Airlie <airlied@redhat.com>2008-09-23 15:36:50 +1000
commita2216491c619082ad9a01bc949648834dc5a0d2f (patch)
treec7253bd5c346518e139e3673fac9b711bf06a8ca /linux-core
parent66237cd3c26faa20403ddb6903252ce49cc1fd72 (diff)
drm: fix brace placement
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_crtc_helper.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-core/drm_crtc_helper.c b/linux-core/drm_crtc_helper.c
index 71bdc447..b5073155 100644
--- a/linux-core/drm_crtc_helper.c
+++ b/linux-core/drm_crtc_helper.c
@@ -291,9 +291,8 @@ static int drm_pick_crtcs(struct drm_device *dev,
best_crtcs[n] = NULL;
best_crtc = NULL;
best_score = drm_pick_crtcs(dev, best_crtcs, modes, n+1, width, height);
- if (modes[n] == NULL) {
+ if (modes[n] == NULL)
return best_score;
- }
crtcs = kmalloc(dev->mode_config.num_connector * sizeof(struct drm_crtc *), GFP_KERNEL);
if (!crtcs)