drm: Remove compiler BUG_ON() test
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/gpu/drm/drm_fb_helper.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/drm_fb_helper.c +0 -1
@@ -1573,7 +1573,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 ;
Signature · 6 lines
2.1.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 4 lines · Peter Hurley
modeset->num_connectorsmust be 0 to reach theBUG_ON()which tests for non-zeromodeset->num_connectors; removeBUG_ON().Signed-off-by Peter Hurley <[email protected]>
Also picked up into topic/core-stuff. I'll probably send the pull for that to Dave's drm-next in a few days.
-Daniel
Quoted 23 lines
--- drivers/gpu/drm/drm_fb_helper.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/drm_fb_helper.c +0
-1@@ -1573,7 +1573,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 ;Signature · 6 lines
2.1.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel