From patchwork Mon Mar 11 19:40:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandru Gheorghiu X-Patchwork-Id: 2250771 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork2.kernel.org (Postfix) with ESMTP id 8EA87DF5B1 for ; Mon, 11 Mar 2013 20:32:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 74A6DE61D9 for ; Mon, 11 Mar 2013 13:32:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-we0-f170.google.com (mail-we0-f170.google.com [74.125.82.170]) by gabe.freedesktop.org (Postfix) with ESMTP id 85687E5CD3 for ; Mon, 11 Mar 2013 12:40:53 -0700 (PDT) Received: by mail-we0-f170.google.com with SMTP id z53so3922051wey.15 for ; Mon, 11 Mar 2013 12:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer; bh=qJN4zhFqT66iTE236Ymy/3kQYwDoFbtPcv+9LLvP5lM=; b=mIw6CLWV4wb2BF6im+obn6Ao8LGoNCTujrkkqVWIt0E2JKT7AoNNDZ0PdtMGAViyHb rvccRL5oQVtQKcw47jtNb/U8F34W0c0JfUOAfszRHBlqOgFnv/PFcl3PAkCaJZCxeJEe C3jZJZiqO4VSD2CJMwYzqkPWKEHJUSo6FXZM1BgXHwXwq9geTg6OjxDecDO8hVqQ/LEg 2FlJvwO9TdNvkAKHqfIJP14Lhyro88PeyeFg821BXmGTnB5UXTPYBHryiPekIHUcqOgz nZSN61KsCAu3ZLLxOiTPG4/YVzITvt/hJRomUDja8yilKz+iJuIoOcbLuwiphPjGpJdV Bv9g== X-Received: by 10.180.183.4 with SMTP id ei4mr14758515wic.21.1363030852569; Mon, 11 Mar 2013 12:40:52 -0700 (PDT) Received: from localhost.localdomain ([109.100.227.88]) by mx.google.com with ESMTPS id fg6sm19353163wib.10.2013.03.11.12.40.51 (version=TLSv1 cipher=DES-CBC3-SHA bits=168/168); Mon, 11 Mar 2013 12:40:52 -0700 (PDT) From: Alexandru Gheorghiu To: David Airlie Subject: [PATCH] drivers: gpu: drm: Replaced ERR_PTR & PTR_ERR with ERR_CAST Date: Mon, 11 Mar 2013 21:40:13 +0200 Message-Id: <1363030813-22354-1-git-send-email-gheorghiuandru@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-Mailman-Approved-At: Mon, 11 Mar 2013 13:27:49 -0700 Cc: Alexandru Gheorghiu , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Replaced ERR_PTR and PTR_ERR calls with ERR_CAST. Patch found using coccinelle. Signed-off-by: Alexandru Gheorghiu --- drivers/gpu/drm/drm_prime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c index 366910d..4c8adda 100644 --- a/drivers/gpu/drm/drm_prime.c +++ b/drivers/gpu/drm/drm_prime.c @@ -275,7 +275,7 @@ struct drm_gem_object *drm_gem_prime_import(struct drm_device *dev, attach = dma_buf_attach(dma_buf, dev->dev); if (IS_ERR(attach)) - return ERR_PTR(PTR_ERR(attach)); + return ERR_CAST(attach); sgt = dma_buf_map_attachment(attach, DMA_BIDIRECTIONAL); if (IS_ERR_OR_NULL(sgt)) {