diff options
author | Ainux.Wang <ainux.wang@gmail.com> | 2021-07-16 09:56:15 +0800 |
---|---|---|
committer | Thomas Zimmermann <tzimmermann@suse.de> | 2021-07-20 11:19:57 +0200 |
commit | 572994bf18ff4512207164b3643a61909dcaa603 (patch) | |
tree | cc8311ceaf793416e8128129df2dbc8a6456ee13 /drivers | |
parent | c715def51591a874a9fcfdc9a05d543e8797e697 (diff) | |
download | linux-572994bf18ff4512207164b3643a61909dcaa603.tar.bz2 |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/ast/ast_mode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c index f5d58c3088fe..f32da620a123 100644 --- a/drivers/gpu/drm/ast/ast_mode.c +++ b/drivers/gpu/drm/ast/ast_mode.c @@ -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; |