From a2216491c619082ad9a01bc949648834dc5a0d2f Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Thu, 28 Aug 2008 21:20:19 +1000 Subject: drm: fix brace placement --- linux-core/drm_crtc_helper.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'linux-core') 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) -- cgit v1.2.3