From: Ilija Hadzic Date: Tue, 29 Oct 2013 15:09:41 +0000 (-0400) Subject: drm: remove redundant if statement X-Git-Tag: accepted/tizen/common/20141203.182822~843^2~117 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fc50a890dfbec975386412fff1193200f270c66c;p=platform%2Fkernel%2Flinux-arm64.git drm: remove redundant if statement Signed-off-by: Ilija Hadzic Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index 305b4cd..866dcfc 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) {