From: Thomas Hellstrom Subject: [PATCH 6/6] drm/ttm: remove failed ttm binding error printout Date: Fri, 29 Oct 2010 10:46:49 +0200 Message-ID: <1288342009-25062-7-git-send-email-thellstrom@vmware.com> References: <1288342009-25062-1-git-send-email-thellstrom@vmware.com> <1288342009-25062-2-git-send-email-thellstrom@vmware.com> <1288342009-25062-3-git-send-email-thellstrom@vmware.com> <1288342009-25062-4-git-send-email-thellstrom@vmware.com> <1288342009-25062-5-git-send-email-thellstrom@vmware.com> <1288342009-25062-6-git-send-email-thellstrom@vmware.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtp-outbound-2.vmware.com (smtp-outbound-2.vmware.com [65.115.85.73]) by gabe.freedesktop.org (Postfix) with ESMTP id 66ACD9F327 for ; Fri, 29 Oct 2010 01:47:10 -0700 (PDT) In-Reply-To: <1288342009-25062-6-git-send-email-thellstrom@vmware.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: airlied@redhat.com Cc: Thomas Hellstrom , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org The driver (for example vmwgfx) may want to silently deal with the error itself. Signed-off-by: Thomas Hellstrom --- drivers/gpu/drm/ttm/ttm_tt.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) 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; -- 1.6.2.5