From patchwork Mon Jul 3 08:42:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9822243 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D77F160246 for ; Mon, 3 Jul 2017 08:43:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA12228504 for ; Mon, 3 Jul 2017 08:43:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BEA4A2853A; Mon, 3 Jul 2017 08:43:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 7AE8628504 for ; Mon, 3 Jul 2017 08:43:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 504BA6E234; Mon, 3 Jul 2017 08:42:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTPS id 51DEA6E222 for ; Mon, 3 Jul 2017 08:42:35 +0000 (UTC) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20170703084233epoutp02aba76443658a3a7380a825a7bf654a09~NxXQO_HbA0863208632epoutp028; Mon, 3 Jul 2017 08:42:33 +0000 (GMT) Received: from epsmges5p3.samsung.com (unknown [182.195.40.68]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170703084232epcas1p3b4f10d81f96f88b1b4d216e4f1d9452d~NxXP-qjUU0789607896epcas1p3H; Mon, 3 Jul 2017 08:42:32 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3.samsung.com (EPCPMTA) with SMTP id 72.08.04762.8730A595; Mon, 3 Jul 2017 17:42:32 +0900 (KST) Received: from epsmgms2p2.samsung.com (unknown [182.195.42.80]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20170703084232epcas5p17a81e626afad21d0e62bb09531bd4163~NxXPyUGX12214622146epcas5p1M; Mon, 3 Jul 2017 08:42:32 +0000 (GMT) X-AuditID: b6c32a2e-f79746d00000129a-ba-595a03785295 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 21.AA.05071.8730A595; Mon, 3 Jul 2017 17:42:32 +0900 (KST) Received: from localhost.localdomain ([10.113.62.206]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OSI00LC9AUV6B10@mmp2.samsung.com>; Mon, 03 Jul 2017 17:42:32 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Subject: [PATCH 06/14] drm/bridge: panel: clean up drm_bridge_add call Date: Mon, 03 Jul 2017 17:42:22 +0900 Message-id: <1499071350-25168-7-git-send-email-inki.dae@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1499071350-25168-1-git-send-email-inki.dae@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrDKsWRmVeSWpSXmKPExsWy7bCmum4Fc1SkwalGK4vecyeZLJo63rJa NB06xWbRuHsbu8XyM+uYLa58fc9mMen+BBYHdo/Lfb1MHov3vGTyuHNtD5vH9m8PWD3udx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74tqxgD2KPcbDJSE1NSixRS85LzUzLz0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTK EnNKgTwjAzTg4BzgHqykb5fglrHg/Ge2gtXsFUtutrI1ME5i62Lk5JAQMJH4fOMpO4QtJnHh 3nqgOBeHkMBqRolvt++AFQkJ/GCU2LhOH8RmE1CVmLjiPlhcREBZ4u/EVYwgDcwCcxglljzr Ze1i5OAQFnCT2L5OCaSGBaj+0tI9rCA2r4CLxJ653SwQy+QkTh6bDBbnFHCVmPr1BjPELheJ a0cvsk5g5F3AyLCKkSu1oDg3PbfYqMBoEyMwmLcd1grYwdh0LvoQowAHoxIP74viyEgh1sSy 4srcQ4wSHMxKIryyDFGRQrwpiZVVqUX58UWlOanFhxhNgU6ZyCwlmpwPjLS8knhDE0sjEwMz M0MjA2MzJXHeCYFfIoQE0hNLUrNTUwtSi2D6mDg4pRoYj9x9krDg2kPvUz0BG/yWtJlvMpQN ve+xtNpvnZp37dFYndnHfr7QNw90b9F/Jff1Puf7tMOZ5SdUSjcVf2luP/PM6M/GlWUz/04/ 6hKgc+SlzbHNU+Zlrkr33vcn1qTiQVf73+roBXrpCfseXdjbslrBofFu9qHsPcGT3h56JBj0 LtWU5wpLnhJLcUaioRZzUXEiAMcPOux8AgAA X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170703084232epcas5p17a81e626afad21d0e62bb09531bd4163 X-Msg-Generator: CA X-Sender-IP: 182.195.42.80 X-Local-Sender: =?UTF-8?B?64yA7J246riwG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLw=?= =?UTF-8?B?7YSwKRvsgrzshLHsoITsnpAbU2VuaW9yIEVuZ2luZWVy?= X-Global-Sender: =?UTF-8?B?SW5raSBEYWUbVGl6ZW4gUGxhdGZvcm0gTGFiLhtTYW1zdW5n?= =?UTF-8?B?IEVsZWN0cm9uaWNzG1NlbmlvciBFbmdpbmVlcg==?= X-Sender-Code: =?UTF-8?B?QzEwG1RFTEUbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170703084232epcas5p17a81e626afad21d0e62bb09531bd4163 X-RootMTR: 20170703084232epcas5p17a81e626afad21d0e62bb09531bd4163 References: <1499071350-25168-1-git-send-email-inki.dae@samsung.com> Cc: daniel.vetter@intel.com 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-Virus-Scanned: ClamAV using ClamSMTP This patch removes unnecessary checking of return value. Signed-off-by: Inki Dae --- drivers/gpu/drm/bridge/panel.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/bridge/panel.c b/drivers/gpu/drm/bridge/panel.c index 99f9a4b..65ab28c 100644 --- a/drivers/gpu/drm/bridge/panel.c +++ b/drivers/gpu/drm/bridge/panel.c @@ -158,7 +158,6 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, u32 connector_type) { struct panel_bridge *panel_bridge; - int ret; if (!panel) return ERR_PTR(EINVAL); @@ -176,9 +175,7 @@ struct drm_bridge *drm_panel_bridge_add(struct drm_panel *panel, panel_bridge->bridge.of_node = panel->dev->of_node; #endif - ret = drm_bridge_add(&panel_bridge->bridge); - if (ret) - return ERR_PTR(ret); + drm_bridge_add(&panel_bridge->bridge); return &panel_bridge->bridge; }