From: Peter Hurley Date: Tue, 4 Nov 2014 01:53:41 +0000 (-0500) Subject: drm: Remove compiler BUG_ON() test X-Git-Tag: v5.15~16676^2~76^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b74c6c92f2839206a3714a00af53b4bdc24c7224;p=platform%2Fkernel%2Flinux-starfive.git drm: Remove compiler BUG_ON() test modeset->num_connectors must be 0 to reach the BUG_ON() which tests for non-zero modeset->num_connectors; remove BUG_ON(). Signed-off-by: Peter Hurley Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 0c0c39b..09d47e9 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -1570,7 +1570,6 @@ static void drm_setup_crtcs(struct drm_fb_helper *fb_helper) modeset = &fb_helper->crtc_info[i].mode_set; if (modeset->num_connectors == 0) { BUG_ON(modeset->fb); - BUG_ON(modeset->num_connectors); if (modeset->mode) drm_mode_destroy(dev, modeset->mode); modeset->mode = NULL;