mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 23:04:43 +00:00
drm/radeon: remove unnecessary braces around conditionals.
As single statement conditionals do not need to be wrapped around braces, the unnecessary braces can be removed. Signed-off-by: Wambui Karuga <wambui.karugax@gmail.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
fbd62354f0
commit
3c20d544ef
6 changed files with 18 additions and 21 deletions
|
@ -1885,11 +1885,10 @@ atombios_set_encoder_crtc_source(struct drm_encoder *encoder)
|
|||
if (ASIC_IS_AVIVO(rdev))
|
||||
args.v1.ucCRTC = radeon_crtc->crtc_id;
|
||||
else {
|
||||
if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_DAC1) {
|
||||
if (radeon_encoder->encoder_id == ENCODER_OBJECT_ID_INTERNAL_DAC1)
|
||||
args.v1.ucCRTC = radeon_crtc->crtc_id;
|
||||
} else {
|
||||
else
|
||||
args.v1.ucCRTC = radeon_crtc->crtc_id << 2;
|
||||
}
|
||||
}
|
||||
switch (radeon_encoder->encoder_id) {
|
||||
case ENCODER_OBJECT_ID_INTERNAL_TMDS1:
|
||||
|
@ -2234,9 +2233,9 @@ assigned:
|
|||
DRM_ERROR("Got encoder index incorrect - returning 0\n");
|
||||
return 0;
|
||||
}
|
||||
if (rdev->mode_info.active_encoders & (1 << enc_idx)) {
|
||||
if (rdev->mode_info.active_encoders & (1 << enc_idx))
|
||||
DRM_ERROR("chosen encoder in use %d\n", enc_idx);
|
||||
}
|
||||
|
||||
rdev->mode_info.active_encoders |= (1 << enc_idx);
|
||||
return enc_idx;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue