From patchwork Mon Aug 6 06:46:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 1277061 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 34FDADFF71 for ; Mon, 6 Aug 2012 07:29:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A3399EF2E for ; Mon, 6 Aug 2012 00:29:48 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pb0-f49.google.com (mail-pb0-f49.google.com [209.85.160.49]) by gabe.freedesktop.org (Postfix) with ESMTP id C07329EC1C for ; Sun, 5 Aug 2012 23:48:16 -0700 (PDT) Received: by pbbrq13 with SMTP id rq13so5439822pbb.36 for ; Sun, 05 Aug 2012 23:47:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=vn1A0g86gp/MP00dNn7mG/+Qi7FToJn+XtvREt+zpAg=; b=j7vvJBI5km/D9cfEvqKX446KjsyBvwtrzEaIxwNAq++VtwQyiefZqHOp6GOdif8V+h ykbCuj1/nI/Fi8Hybs4HZYyPgQjGErwvv7+i46+o6CmoObCjwhrQ2OpSEaWZHghhVqzr vHufZr0iR43oiMMKXC/IqDG8+VOlMoeNXsPOzRbaIiS5XQ+2PCyYCgA8MMLsdQmdS7Qs zr1D9OGpmenMX7aKO+H/xq3fwINE5/quHtdst943qHJ1mmOBmyVT/9TxQn2sjgHkuRnJ iu5vwUOGZXDI7q69U1saFA4gpwZvfL14U7zABlP+M4gpjQ/pZ6ZzTixXBaEzr28TsJtW Rakg== Received: by 10.68.225.231 with SMTP id rn7mr16468657pbc.13.1344235675045; Sun, 05 Aug 2012 23:47:55 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ql6sm8331600pbc.61.2012.08.05.23.47.51 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 05 Aug 2012 23:47:54 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Subject: [PATCH 2/5] drm/exynos: Remove redundant check in exynos_drm_fimd.c file Date: Mon, 6 Aug 2012 12:16:17 +0530 Message-Id: <1344235580-3030-3-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1344235580-3030-1-git-send-email-sachin.kamat@linaro.org> References: <1344235580-3030-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQlEQkiwBBzmaxuzNmvoNoX5aK6fk3CqBW0qJL6mAFn0cTabygwRqX7fDgDUAnU8+powsJ3B X-Mailman-Approved-At: Mon, 06 Aug 2012 00:18:43 -0700 Cc: patches@linaro.org, sachin.kamat@linaro.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 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 --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index a68d2b3..b19cd93 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -831,11 +831,6 @@ static int __devinit fimd_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(dev, "failed to find registers\n"); - ret = -ENOENT; - goto err_clk; - } ctx->regs = devm_request_and_ioremap(&pdev->dev, res); if (!ctx->regs) {