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: Ainux.Wang <ainux.wang@gmail.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20210716015615.9150-1-ainux.wang@gmail.com
This commit is contained in:
Ainux.Wang 2021-07-16 09:56:15 +08:00 committed by Thomas Zimmermann
parent c715def515
commit 572994bf18

View File

@ -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;