提交 81ed7039 编写于 作者: S Sachin Kamat 提交者: Inki Dae

drm/exynos: drm_connector: Fix error check condition

drm_add_edid_modes() returns 0 upon failure to find any modes.
Hence check for 0 and not less than 0.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NInki Dae <inki.dae@samsung.com>
上级 d8e9ca45
...@@ -124,7 +124,7 @@ static int exynos_drm_connector_get_modes(struct drm_connector *connector) ...@@ -124,7 +124,7 @@ static int exynos_drm_connector_get_modes(struct drm_connector *connector)
} }
count = drm_add_edid_modes(connector, edid); count = drm_add_edid_modes(connector, edid);
if (count < 0) { if (!count) {
DRM_ERROR("Add edid modes failed %d\n", count); DRM_ERROR("Add edid modes failed %d\n", count);
goto out; goto out;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册