diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-03-27 14:58:43 +0400 |
---|---|---|
committer | Inki Dae <daeinki@gmail.com> | 2013-04-16 19:07:27 +0400 |
commit | 81ed7039f3cf656107a277fd7e3ab8f27d442015 (patch) | |
tree | 0e5fb208be6fe8b744ff7b027d9b7541e2fb4cd6 /drivers/gpu/drm/exynos/exynos_drm_connector.c | |
parent | d8e9ca45df0b4da4cd1ba66c41a241ed94c03d01 (diff) | |
download | linux-81ed7039f3cf656107a277fd7e3ab8f27d442015.tar.xz |
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: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos/exynos_drm_connector.c')
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_connector.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_connector.c b/drivers/gpu/drm/exynos/exynos_drm_connector.c index 4c5b6859c9ea..8bcc13ac9f73 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_connector.c +++ b/drivers/gpu/drm/exynos/exynos_drm_connector.c @@ -124,7 +124,7 @@ static int exynos_drm_connector_get_modes(struct drm_connector *connector) } count = drm_add_edid_modes(connector, edid); - if (count < 0) { + if (!count) { DRM_ERROR("Add edid modes failed %d\n", count); goto out; } |