Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b74c6c92 authored by Peter Hurley's avatar Peter Hurley Committed by Daniel Vetter
Browse files

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: default avatarPeter Hurley <peter@hurleysoftware.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent 2c4cc91b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;