Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKernel Build Daemon <kbuild@suse.de>2019-02-16 07:06:37 +0100
committerKernel Build Daemon <kbuild@suse.de>2019-02-16 07:06:37 +0100
commitaf2f0ff8f7aaf20a17afc8c9e6ccc5b98ce5f2c4 (patch)
tree441cd75f13d305ed9b186ab00ebc108b2c221c9d
parent8e0dde76d196ef179737422b025ab3caa4037535 (diff)
parentdf7a74ab3ac4a6b326c2d1cb43b4e28f04d9b4ca (diff)
Merge branch 'SLE15' into SLE15-AZURE
-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 49e724936ed3..767cbe5ca813 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 */