Home Home > GIT Browse > SLE12-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKernel Build Daemon <kbuild@suse.de>2019-02-16 07:00:28 +0100
committerKernel Build Daemon <kbuild@suse.de>2019-02-16 07:00:28 +0100
commit901acc7fa6040078b2a2765ba95f4a2541156df9 (patch)
tree15696353d3a57e0ba4cf0493f769fd3a33277c43
parent48c4f6a0720423a83bc2e4a11cde9a35da61607e (diff)
parentdf7a74ab3ac4a6b326c2d1cb43b4e28f04d9b4ca (diff)
Merge branch 'SLE15' into SLE12-SP4SLE12-SP4
-rw-r--r--drivers/gpu/drm/drm_modes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c
index e280dafbdfe4..65585606e1b2 100644
--- a/drivers/gpu/drm/drm_modes.c
+++ b/drivers/gpu/drm/drm_modes.c
@@ -751,7 +751,7 @@ int drm_mode_hsync(const struct drm_display_mode *mode)
if (mode->hsync)
return mode->hsync;
- if (mode->htotal < 0)
+ if (mode->htotal <= 0)
return 0;
calc_val = (mode->clock * 1000) / mode->htotal; /* hsync in Hz */