Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3634424imm; Sun, 13 May 2018 16:37:10 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpyG43I6hZDjIAXlDZwGj6wI7QIblMW/sD2FenCkJzBsq9bTWw/yg/+vCeHX7h6WofWIndg X-Received: by 2002:a17:902:9a4b:: with SMTP id x11-v6mr7440406plv.176.1526254630356; Sun, 13 May 2018 16:37:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526254630; cv=none; d=google.com; s=arc-20160816; b=UBQmxDivmV2wnm0bdzbWUVF2oIQoHE/DUYz2Q5rJj+lTHxi/7YSFdkmKfx9eYemwLV kf/4zAphtDqORjH5sZX0kgVNS28Ch1362skUdYJr+zwhsX6jJY0pI60RDiESn7HouwuF DlMRIT3lkjGlE2LmjdvLHX4pPyx4qdwNUViE48p88B1g/piGZuNgjh2Coz+zFiWyDtsn S/sfgH4sCTkfGXBMTWndSKrABsiuok7ILIT4puNV7w3u+m2guUtfwp55KpbLJQo8IjjN NMiqQNkkoEzFx/XyvQtqdtayms1XFOnnA4geLn0aLge6GdKL3XtIoiM/U6ELXFkcZo8c mEJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=Ew240irEzBJSvnCZj/t8IVVo0q2GK7WMdTvDsPG1vss=; b=bZCyZXwAT3OtqMKNW3UTo3+txvQZJtokF30NgXlCvuIlN8Iw5yApI6B8wtoKCzTfqX MCmLv2/K27TVg/WaHZCH1FT8AR16+0wrWEaMKfo5Ibpiv3Ooi8Z8axM4LdLMygMFcETR BCbb5PMSjaSgnYdoIJb8ALZ9Wx9pBb2G2yCWbe85DwnAk3Nhlsuduay4eXGEGs3ROwAs c/nRGNqAyShBTeq0hJkUERCrLsUBqm9imlyJGPJ6FtVCFuH70vgSLTXoXKrMupEuZmB3 BkNiw19vG/k6XLc9qWmrrjc/TWIk4SDdrexmHBa4YRBgrBkqCyPeAT5KRjdv41QyUrvM y4Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Hhsegv4J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u10-v6si6529156pgv.650.2018.05.13.16.36.55; Sun, 13 May 2018 16:37:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=Hhsegv4J; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884AbeEMXgb (ORCPT + 99 others); Sun, 13 May 2018 19:36:31 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:36676 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751031AbeEMXga (ORCPT ); Sun, 13 May 2018 19:36:30 -0400 Received: by mail-qt0-f195.google.com with SMTP id q6-v6so13978621qtn.3 for ; Sun, 13 May 2018 16:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ew240irEzBJSvnCZj/t8IVVo0q2GK7WMdTvDsPG1vss=; b=Hhsegv4J+nWCrnkQryGOOUu6N33nlEWL28AeVCsYHEteJYicpJLH8J65Si9l0OD+P/ WIFrorG/Bk2Lv95boYJgudsyvsoLDkUa2FsRQKS5ii/jaj+KQ0VOOt5cf3KqYK/V6/aA abeQEPGKOGbAmqKTLDRmS99E2fMNT8Ek55T8UEdd/DbVjv5E1Evdbvf7waoMOHtFES7L FiOlyV4/JrrwHGoEnTYHOBXbN+ylhIuLi2udG+c+TxYICiaqbWwYcqr81iDl+zJK2FAB CRMzS1ctidc/shrPv+xhm6WS+Lvo9hypcFPIaXJPoasaVCR22rVFlkprE6xKsXY4vXpN Puzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Ew240irEzBJSvnCZj/t8IVVo0q2GK7WMdTvDsPG1vss=; b=UZL6sYXfYYRZofQFO3MPD5W6XwqPs5ZpTcrk12nd8ncPLpAKC84z0yv3y+2gyMQ+rE ZfE85deBAiaZFPqh35qJhyh1YFNcle9/kPIcM4LIWUEHmA8qLoowCKNeUwtLYwaojAV8 Jb3U/nKPelfP/N3j12ZSEdPNgXtdRQpAgma3ZdzdA1bnb5/6qGURa89ICi2d1DNbSXtk dBwxC2GTmCDs3X9l+sSN4tM1VkHNJcUlFdLAOh1quWfqPSWiCbpcvqmzh9zgHAHKYIfA jzVaRuPgJ5nKnKdJ03OIE95OCofj/XqPQd+ub8kseHYWVXy2W4HV9GjhhPvUA38sXK0j x9cg== X-Gm-Message-State: ALKqPweNb2V60FOdpoAlSSEKDtZUgbraJl6XQi4w4JY2ihR1/1ahPM6x 9Rm1ipmjCGaK6mNajdEUD7HkXQ== X-Received: by 2002:aed:2501:: with SMTP id v1-v6mr6991150qtc.66.1526254589651; Sun, 13 May 2018 16:36:29 -0700 (PDT) Received: from hlaptop.cpe.express.com.ar ([181.199.145.157]) by smtp.gmail.com with ESMTPSA id g127-v6sm6023119qkc.4.2018.05.13.16.36.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 May 2018 16:36:29 -0700 (PDT) From: =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= To: tomi.valkeinen@ti.com Cc: airlied@linux.ie, laurent.pinchart@ideasonboard.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Hern=C3=A1n=20Gonzalez?= Subject: [PATCH] drm/omap: dss: Use ERR_CAST instead of ERR_PTR(PTR_ERR()) Date: Sun, 13 May 2018 20:36:21 -0300 Message-Id: <1526254581-4388-1-git-send-email-hernan@vanguardiasur.com.ar> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use ERR_CAST inlined function instead of ERR_PTR(PTR_ERR(...)). drivers/gpu/drm/omapdrm/dss/dss.c:959:9-16: WARNING: ERR_CAST can be used with d Generated by: scripts/coccinelle/api/err_cast.cocci Signed-off-by: HernĂ¡n Gonzalez --- drivers/gpu/drm/omapdrm/dss/dss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/dss/dss.c b/drivers/gpu/drm/omapdrm/dss/dss.c index 0b908e9..be043c8 100644 --- a/drivers/gpu/drm/omapdrm/dss/dss.c +++ b/drivers/gpu/drm/omapdrm/dss/dss.c @@ -956,7 +956,7 @@ dss_debugfs_create_file(struct dss_device *dss, const char *name, &dss_debug_fops); if (IS_ERR(d)) { kfree(entry); - return ERR_PTR(PTR_ERR(d)); + return ERR_CAST(d); } entry->dentry = d; -- 2.7.4