Skip to content

Commit

Permalink
drm: remove redundant if statement
Browse files Browse the repository at this point in the history
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Ilija Hadzic authored and Dave Airlie committed Nov 6, 2013
1 parent 39868bd commit fc50a89
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/drm_crtc_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -822,8 +822,7 @@ int drm_crtc_helper_set_config(struct drm_mode_set *set)
set->crtc->y = set->y;

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,
set->x, set->y, old_fb);
if (ret != 0) {
Expand Down

0 comments on commit fc50a89

Please sign in to comment.