Skip to content

Commit

Permalink
drm/exynos: Remove redundant check in exynos_hdmi.c file
Browse files Browse the repository at this point in the history
devm_request_and_ioremap function checks the validity of the
pointer returned by platform_get_resource. Hence an additional check
in the probe function is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
  • Loading branch information
Sachin Kamat authored and Inki Dae committed Sep 13, 2012
1 parent 26df641 commit 7ba073c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/gpu/drm/exynos/exynos_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -2312,11 +2312,6 @@ static int __devinit hdmi_probe(struct platform_device *pdev)
}

res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
DRM_ERROR("failed to find registers\n");
ret = -ENOENT;
goto err_resource;
}

hdata->regs = devm_request_and_ioremap(&pdev->dev, res);
if (!hdata->regs) {
Expand Down

0 comments on commit 7ba073c

Please sign in to comment.