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

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
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment