Commit fc50a890 authored by Ilija Hadzic's avatar Ilija Hadzic Committed by Dave Airlie

drm: remove redundant if statement

Signed-off-by: default avatarIlija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 39868bd7
...@@ -822,8 +822,7 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set) ...@@ -822,8 +822,7 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
set->crtc->y = set->y; set->crtc->y = set->y;
old_fb = set->crtc->fb; old_fb = set->crtc->fb;
if (set->crtc->fb != set->fb) set->crtc->fb = set->fb;
set->crtc->fb = set->fb;
ret = crtc_funcs->mode_set_base(set->crtc, ret = crtc_funcs->mode_set_base(set->crtc,
set->x, set->y, old_fb); set->x, set->y, old_fb);
if (ret != 0) { if (ret != 0) {
......
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