Commit cbe7cea7 authored by chenxuebing's avatar chenxuebing Committed by Jani Nikula

drm/edid: Clean up errors in drm_edid.c

Fix the following errors reported by checkpatch:

ERROR: do not use assignment in if condition
Signed-off-by: default avatarchenxuebing <chenxb_99091@126.com>
Reviewed-by: default avatarJani Nikula <jani.nikula@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240111063921.8701-1-chenxb_99091@126.com
parent d11dc7aa
......@@ -3610,7 +3610,8 @@ static bool mode_in_range(const struct drm_display_mode *mode,
if (!mode_in_vsync_range(mode, edid, t))
return false;
if ((max_clock = range_pixel_clock(edid, t)))
max_clock = range_pixel_clock(edid, t);
if (max_clock)
if (mode->clock > max_clock)
return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment