diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2013-10-29 19:09:41 +0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-06 08:27:49 +0400 |
commit | fc50a890dfbec975386412fff1193200f270c66c (patch) | |
tree | 9a72974290c95ad0b1a2a0369e528b4f1aba8ab7 /drivers/gpu/drm/drm_crtc_helper.c | |
parent | 39868bd7668bd47308b1dfd97c212757caee764f (diff) | |
download | linux-fc50a890dfbec975386412fff1193200f270c66c.tar.xz |
drm: remove redundant if statement
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_crtc_helper.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 305b4cdcfb29..866dcfcf0659 100644 --- a/drivers/gpu/drm/drm_crtc_helper.c +++ b/drivers/gpu/drm/drm_crtc_helper.c @@ -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) { |