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: 6352971 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7E4619F32B for ; Thu, 7 May 2015 00:05:18 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BA4B8200E8 for ; Thu, 7 May 2015 00:05:17 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id DA76920396 for ; Thu, 7 May 2015 00:05:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1B05D6E73D; Wed, 6 May 2015 17:05:16 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.w1.samsung.com (mailout3.w1.samsung.com [210.118.77.13]) by gabe.freedesktop.org (Postfix) with ESMTP id C330D6E73E for ; Wed, 6 May 2015 17:05:14 -0700 (PDT) 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 dri-devel@lists.freedesktop.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= Cc: Krzysztof Kozlowski , Javier Martinez Canillas X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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,