mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 23:46:14 +01:00
drm/radeon: Move assignment outside if condition
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun <sunran001@208suo.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
a645529de9
commit
819362e4e6
1 changed files with 4 additions and 2 deletions
|
|
@ -724,12 +724,14 @@ void radeon_legacy_tv_mode_set(struct drm_encoder *encoder,
|
|||
}
|
||||
|
||||
for (i = 0; i < MAX_H_CODE_TIMING_LEN; i++) {
|
||||
if ((tv_dac->tv.h_code_timing[i] = hor_timing[i]) == 0)
|
||||
tv_dac->tv.h_code_timing[i] = hor_timing[i];
|
||||
if (tv_dac->tv.h_code_timing[i] == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
for (i = 0; i < MAX_V_CODE_TIMING_LEN; i++) {
|
||||
if ((tv_dac->tv.v_code_timing[i] = vert_timing[i]) == 0)
|
||||
tv_dac->tv.v_code_timing[i] = vert_timing[i];
|
||||
if (tv_dac->tv.v_code_timing[i] == 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue