瀏覽代碼

drm: remove redundant if statement

Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Ilija Hadzic 12 年之前
父節點
當前提交
fc50a890df
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      drivers/gpu/drm/drm_crtc_helper.c

+ 1 - 2
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) {