dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Fabio Estevam <festevam@gmail.com>
To: gustavo@padovan.org
Cc: Fabio Estevam <fabio.estevam@nxp.com>,
	Thierry Reding <thierry.reding@gmail.com>,
	dri-devel@lists.freedesktop.org
Subject: [PATCH 7/7] drm/tegra: vic: Remove unnecessary platform_get_resource() error check
Date: Mon, 18 Dec 2017 11:02:30 -0200	[thread overview]
Message-ID: <1513602150-7542-7-git-send-email-festevam@gmail.com> (raw)
In-Reply-To: <1513602150-7542-1-git-send-email-festevam@gmail.com>

From: Fabio Estevam <fabio.estevam@nxp.com>

devm_ioremap_resource() already checks if the resource is NULL, so
remove the unnecessary platform_get_resource() error check.

Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 drivers/gpu/drm/tegra/vic.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/gpu/drm/tegra/vic.c b/drivers/gpu/drm/tegra/vic.c
index f5794dd..088a795 100644
--- a/drivers/gpu/drm/tegra/vic.c
+++ b/drivers/gpu/drm/tegra/vic.c
@@ -304,11 +304,6 @@ static int vic_probe(struct platform_device *pdev)
 		return -ENOMEM;
 
 	regs = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-	if (!regs) {
-		dev_err(&pdev->dev, "failed to get registers\n");
-		return -ENXIO;
-	}
-
 	vic->regs = devm_ioremap_resource(dev, regs);
 	if (IS_ERR(vic->regs))
 		return PTR_ERR(vic->regs);
-- 
2.7.4

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2017-12-18 13:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-18 13:02 [PATCH 1/7] drm/bridge/synopsys: dsi: Remove unnecessary platform_get_resource() error check Fabio Estevam
2017-12-18 13:02 ` [PATCH 2/7] drm/exynos: decon5433: " Fabio Estevam
2017-12-18 13:28   ` Andrzej Hajda
2017-12-18 23:44   ` Inki Dae
2017-12-18 13:02 ` [PATCH 3/7] drm/rockchip: dsi: " Fabio Estevam
2017-12-18 13:02 ` [PATCH 4/7] drm/rockchip: inno_hdmi: " Fabio Estevam
2017-12-18 13:02 ` [PATCH 5/7] drm/stm: dsi: " Fabio Estevam
2017-12-19 14:14   ` Philippe CORNU
2017-12-19 14:28     ` Benjamin Gaignard
2017-12-18 13:02 ` [PATCH 6/7] drm/stm: ltdc: " Fabio Estevam
2017-12-19 14:15   ` Philippe CORNU
2017-12-19 14:28     ` Benjamin Gaignard
2017-12-18 13:02 ` Fabio Estevam [this message]
2017-12-19 14:32 ` [PATCH 1/7] drm/bridge/synopsys: dsi: " Philippe CORNU

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1513602150-7542-7-git-send-email-festevam@gmail.com \
    --to=festevam@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=fabio.estevam@nxp.com \
    --cc=gustavo@padovan.org \
    --cc=thierry.reding@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox