mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 06:10:56 +00:00
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: chenxuebing <chenxb_99091@126.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240111063921.8701-1-chenxb_99091@126.com
This commit is contained in:
parent
d11dc7aa98
commit
cbe7cea7ee
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue