Message ID | 1401337998-18085-1-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Superseded |
Headers | show
Return-Path: <patchwork-forward+bncBDM5LUP2XEPRBS5BTWOAKGQEE54HE6I@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ie0-f199.google.com (mail-ie0-f199.google.com [209.85.223.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D821C20068 for <linaro@patches.linaro.org>; Thu, 29 May 2014 15:22:51 +0000 (UTC) Received: by mail-ie0-f199.google.com with SMTP id rl12sf2259661iec.2 for <linaro@patches.linaro.org>; Thu, 29 May 2014 08:22:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:subject:date :message-id:cc:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:errors-to:sender :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=VRXVfasjz+eXM+tpzjGU1YMyuG7shXd6zLwZ3PA/aMU=; b=hBoYHaHf/bt6iM8wC7XSGWcrEU0tsPclrUEB9XEcf89bOyeHhMzIC28g52QDnytuza kmwh/2TglWQfohiOLtVGczRQ2gd8XPKIXghhJnA1svIUOI05PlDQrR+wwlcosvM9mZNw qE/Q+pP5z+TpaGc1o6jeL4WF1ZzyIOrPDj3tr+luD4s8KyQ84+S7cd436BaLT6t1qsW5 GGLF6BSYA9Ja6fB4i3kC9KZ8ohW5LZU9QlQV6u71nBLB2GXg2EJ+cqb+r0dAaOLsw752 1l7Jj28+Cm9soLHyfC1I2x0YyAcrn9yDBO8yZlvMHXLsDBNpv9RIGZ6EmKR+BZMpIsIh wx4A== X-Gm-Message-State: ALoCoQmJwoCj0pfrGtDzQ8dvpIDEhXaDVTPW8IjJ6BCpPjvrDCErf+j7Cd4IjC4YsFhm1X4nPwgv X-Received: by 10.182.97.165 with SMTP id eb5mr3284895obb.43.1401376971305; Thu, 29 May 2014 08:22:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.7 with SMTP id 7ls605266qgo.60.gmail; Thu, 29 May 2014 08:22:51 -0700 (PDT) X-Received: by 10.220.95.2 with SMTP id b2mr1632540vcn.61.1401376971167; Thu, 29 May 2014 08:22:51 -0700 (PDT) Received: from mail-ve0-f181.google.com (mail-ve0-f181.google.com [209.85.128.181]) by mx.google.com with ESMTPS id g7si728596vek.12.2014.05.29.08.22.51 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 May 2014 08:22:51 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) client-ip=209.85.128.181; Received: by mail-ve0-f181.google.com with SMTP id pa12so548770veb.40 for <patchwork-forward@linaro.org>; Thu, 29 May 2014 08:22:51 -0700 (PDT) X-Received: by 10.220.44.141 with SMTP id a13mr1611554vcf.71.1401376971097; Thu, 29 May 2014 08:22:51 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp37220vcb; Thu, 29 May 2014 08:22:50 -0700 (PDT) X-Received: by 10.68.164.67 with SMTP id yo3mr9940792pbb.104.1401376970267; Thu, 29 May 2014 08:22:50 -0700 (PDT) Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTP id hv12si1374403pac.103.2014.05.29.08.22.49 for <multiple recipients>; Thu, 29 May 2014 08:22:50 -0700 (PDT) Received-SPF: none (google.com: dri-devel-bounces@lists.freedesktop.org does not designate permitted sender hosts) client-ip=131.252.210.177; Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 75B636E9C9; Thu, 29 May 2014 08:22:47 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 04ED96E01F for <dri-devel@lists.freedesktop.org>; Wed, 28 May 2014 21:35:41 -0700 (PDT) Received: by mail-pa0-f49.google.com with SMTP id kp14so2301280pab.8 for <dri-devel@lists.freedesktop.org>; Wed, 28 May 2014 21:35:40 -0700 (PDT) X-Received: by 10.66.66.12 with SMTP id b12mr3455566pat.72.1401338140704; Wed, 28 May 2014 21:35:40 -0700 (PDT) Received: from linaro.sisodomain.com ([14.140.216.146]) by mx.google.com with ESMTPSA id or4sm31061604pbb.17.2014.05.28.21.35.38 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 28 May 2014 21:35:39 -0700 (PDT) From: Sachin Kamat <sachin.kamat@linaro.org> To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/1] drm: gem_cma: Use ERR_CAST helper Date: Thu, 29 May 2014 10:03:18 +0530 Message-Id: <1401337998-18085-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Mailman-Approved-At: Thu, 29 May 2014 08:22:46 -0700 Cc: sachin.kamat@linaro.org, Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
diff --git a/drivers/gpu/drm/drm_gem_cma_helper.c b/drivers/gpu/drm/drm_gem_cma_helper.c index 05c97c5350a1..e467e67af6e7 100644 --- a/drivers/gpu/drm/drm_gem_cma_helper.c +++ b/drivers/gpu/drm/drm_gem_cma_helper.c @@ -327,7 +327,7 @@ drm_gem_cma_prime_import_sg_table(struct drm_device *dev, size_t size, /* Create a CMA GEM buffer. */ cma_obj = __drm_gem_cma_create(dev, size); if (IS_ERR(cma_obj)) - return ERR_PTR(PTR_ERR(cma_obj)); + return ERR_CAST(cma_obj); cma_obj->paddr = sg_dma_address(sgt->sgl); cma_obj->sgt = sgt;
Makes the code a bit more readable. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> --- drivers/gpu/drm/drm_gem_cma_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)