From patchwork Thu May 7 00:04:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 6353061 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 300D2BEEE1 for ; Thu, 7 May 2015 00:09:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3622B2039C for ; Thu, 7 May 2015 00:09:06 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C6D3720395 for ; Thu, 7 May 2015 00:09:04 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yq9Km-0007Wm-Ae; Thu, 07 May 2015 00:06:36 +0000 Received: from mailout3.w1.samsung.com ([210.118.77.13]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Yq9Jq-0007BW-FB for linux-arm-kernel@lists.infradead.org; Thu, 07 May 2015 00:05:39 +0000 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NNY00BO3DKOMB30@mailout3.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Thu, 07 May 2015 01:05:12 +0100 (BST) X-AuditID: cbfec7f4-f79c56d0000012ee-80-554aac38b65d Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id F3.1E.04846.83CAA455; Thu, 7 May 2015 01:05:12 +0100 (BST) Received: from localhost.localdomain ([10.252.80.64]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NNY0078QDK4ZD90@eusync1.samsung.com>; Thu, 07 May 2015 01:05:12 +0100 (BST) From: Krzysztof Kozlowski To: Inki Dae , Joonyoung Shim , Seung-Woo Kim , Kyungmin Park , David Airlie , Kukjin Kim , Jingoo Han , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org Subject: [RFT PATCH v2 3/3] drm/exynos: Consolidate return statements in fimd_bind() Date: Thu, 07 May 2015 09:04:46 +0900 Message-id: <1430957086-25005-4-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1430957086-25005-1-git-send-email-k.kozlowski@samsung.com> References: <1430957086-25005-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsVy+t/xy7oWa7xCDTofyFj0njvJZHHl63s2 i0n3J7BYHP1dYHF54SVWixf3LrJYPP/3g92i//FrZouzTW/YLTY9vsZqcXnXHDaLGef3MVnM mPySzYHX4+/z6yweO2fdZffYtKqTzWP7twesHve7jzN5bF5S79G3ZRWjx+dNcgEcUVw2Kak5 mWWpRfp2CVwZ59YfYS/o4ai4s0G7gfEjWxcjJ4eEgInE1stHmCFsMYkL99YDxbk4hASWMkrc nXmYGcL5zyhx4fUuVpAqNgFjic3Ll4BViQhMYZZYMn0mWDuzQL5E08nZYLawQJjEhosPwVaw CKhKnF87jx3E5hVwlzh3fC8LxDo5iZPHJoMN5RTwkHh/tQ+sXgiopvlbM8sERt4FjAyrGEVT S5MLipPScw31ihNzi0vz0vWS83M3MUKC9csOxsXHrA4xCnAwKvHwBlR5hgqxJpYVV+YeYpTg YFYS4Y2a7xUqxJuSWFmVWpQfX1Sak1p8iFGag0VJnHfurvchQgLpiSWp2ampBalFMFkmDk6p BkbWu1apn0yv2M+75L7Q9OjXNd+Mv681NW47ps8lxNwfV7z64bobdV8lOk369kY0/tVp02Lc rC75//xPLsb4iUHbOEO/OMcbhriVzdhiIMi1SKn1W1ZIYNf/3KNXX//cYD9/g+mnpsKfn2yW LlQ++kB0yrxlxnN6d5xQdNVvfik3Z4fvPb4jVxYrsRRnJBpqMRcVJwIASWQ8CFICAAA= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150506_170538_686218_6D2DE3BB X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski , Javier Martinez Canillas X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Krzysztof Kozlowski Simplify the code and remove superfluous return statement. Just return the result of fimd_iommu_attach_devices(). Signed-off-by: Krzysztof Kozlowski --- Changes since v1: New patch. --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 5c1a148525f8..d704f2ba7179 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimd.c @@ -1042,12 +1042,7 @@ static int fimd_bind(struct device *dev, struct device *master, void *data) if (ctx->display) exynos_drm_create_enc_conn(drm_dev, ctx->display); - ret = fimd_iommu_attach_devices(ctx, drm_dev); - if (ret) - return ret; - - return 0; - + return fimd_iommu_attach_devices(ctx, drm_dev); } static void fimd_unbind(struct device *dev, struct device *master,