diff options
author | Ilija Hadzic <ihadzic@research.bell-labs.com> | 2013-10-29 11:09:41 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-06 14:27:49 +1000 |
commit | fc50a890dfbec975386412fff1193200f270c66c (patch) | |
tree | 9a72974290c95ad0b1a2a0369e528b4f1aba8ab7 | |
parent | 39868bd7668bd47308b1dfd97c212757caee764f (diff) | |
download | talos-op-linux-fc50a890dfbec975386412fff1193200f270c66c.tar.gz talos-op-linux-fc50a890dfbec975386412fff1193200f270c66c.zip |
drm: remove redundant if statement
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-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) { |