Commit 572994bf authored by Ainux.Wang's avatar Ainux.Wang Committed by Thomas Zimmermann
Browse files

drm/ast: Zero is missing in detect function



The function ast_get_modes() will also return 0, when it try to get the
edid, but it also do not get the edid.

Signed-off-by: default avatarAinux.Wang <ainux.wang@gmail.com>
Signed-off-by: default avatarThomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210716015615.9150-1-ainux.wang@gmail.com
parent c715def5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1298,7 +1298,7 @@ static enum drm_connector_status ast_connector_detect(struct drm_connector
	int r;

	r = ast_get_modes(connector);
	if (r < 0)
	if (r <= 0)
		return connector_status_disconnected;

	return connector_status_connected;