Skip to content

Commit cbe7cea

Browse files
chenxuebingjnikula
chenxuebing
authored andcommitted
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 <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Signed-off-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent d11dc7a commit cbe7cea

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/gpu/drm/drm_edid.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3610,7 +3610,8 @@ static bool mode_in_range(const struct drm_display_mode *mode,
36103610
if (!mode_in_vsync_range(mode, edid, t))
36113611
return false;
36123612

3613-
if ((max_clock = range_pixel_clock(edid, t)))
3613+
max_clock = range_pixel_clock(edid, t);
3614+
if (max_clock)
36143615
if (mode->clock > max_clock)
36153616
return false;
36163617

0 commit comments

Comments
 (0)