From: Thomas Hellstrom Date: Fri, 29 Oct 2010 08:46:49 +0000 (+0200) Subject: drm/ttm: remove failed ttm binding error printout X-Git-Tag: v3.0~2837^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7dcebb52f6e0cd5150660a4c37f27cf4c0f1b9b9;p=platform%2Fkernel%2Flinux-amlogic.git drm/ttm: remove failed ttm binding error printout The driver (for example vmwgfx) may want to silently deal with the error itself. Signed-off-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index a7bab87..af789dc 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -440,10 +440,8 @@ int ttm_tt_bind(struct ttm_tt *ttm, struct ttm_mem_reg *bo_mem) return ret; ret = be->func->bind(be, bo_mem); - if (ret) { - printk(KERN_ERR TTM_PFX "Couldn't bind backend.\n"); + if (unlikely(ret != 0)) return ret; - } ttm->state = tt_bound;