From patchwork Mon Jul 3 08:42:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9822219 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 4DB3F60246 for ; Mon, 3 Jul 2017 08:42:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3D5EF28396 for ; Mon, 3 Jul 2017 08:42:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3119A2852D; Mon, 3 Jul 2017 08:42:38 +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 39BD328396 for ; Mon, 3 Jul 2017 08:42:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D5BBF6E222; Mon, 3 Jul 2017 08:42:35 +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 DB86E6E220 for ; Mon, 3 Jul 2017 08:42:34 +0000 (UTC) Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20170703084232epoutp0241c86b0628bd336b516788dc99c2109a~NxXP5LinB0863108631epoutp028; Mon, 3 Jul 2017 08:42:32 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.69]) by epcas1p1.samsung.com (KnoxPortal) with ESMTP id 20170703084232epcas1p1415f50d3fbcdb465fe49618c239e1acb~NxXPnCdA92118321183epcas1p1-; Mon, 3 Jul 2017 08:42:32 +0000 (GMT) Received: from epcas1p4.samsung.com ( [182.195.41.48]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 78.3E.06839.8730A595; Mon, 3 Jul 2017 17:42:32 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170703084232epcas1p4b0b9b7e03aef4d024c33cbc592434b54~NxXPaOgHi1944619446epcas1p4n; Mon, 3 Jul 2017 08:42:32 +0000 (GMT) X-AuditID: b6c32a35-f794c6d000001ab7-c6-595a0378a2c4 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 08.4D.05076.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 03/14] drm/bridge: analogix-anx78xx: clean up drm_bridge_add call Date: Mon, 03 Jul 2017 17:42:19 +0900 Message-id: <1499071350-25168-4-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: H4sIAAAAAAAAAzVSa0hTYRjuO2fnorQ4zMyvlWEnIhRcO8vZFBdFZuvKyH50jJiHeZribpyz ifYra5guM82iK7XKygapSK2LlrEisaSbw4IiLYPSSq2woqW17di/53l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Wwe2789YPW4332c yaPl5H4Wj74tqxgD2KPcbDJSE1NSixRS85LzUzLz0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTK EnNKgTwjAzTg4BzgHqykb5fglrFqz23mgjb2in99XewNjH9Zuxg5OCQETCSuvLHtYuQEMsUk Ltxbz9bFyMUhJLCaUaLjwTomkISQwA9GiY3r9EFsNgFViYkr7rOB2CICyhJ/J65iBGlgFpjD KLHkWS8rSEJYIFhi8osljCA2C1DDhFdH2EFsXgEXidPzNjBBbJOTOHlsMlg9p4CrxNSvN5gh lrlIXDt6kXUCI+8CRoZVjFypBcW56bnFRgWGmxiBwbztsJb/DsYfZ6MPMQpwMCrx8L4ojowU Yk0sK67MPcQowcGsJMIryxAVKcSbklhZlVqUH19UmpNafIjRFOiUicxSosn5wEjLK4k3NLE0 MjEwMzM0MjA2UxLnnRD4JUJIID2xJDU7NbUgtQimj4mDU6qBcX615gIWEW1OjZai/lWnm/5a PK3jq2IV1Dphfi+n4cTnOUYxP8zyWY46fj5acrvB/bSd8Nmch73X91Zvkvzq/kOqcVuwoqf8 wUNPxRjUjwpZ9fkevsotWXXG6aF8KcN0gdecDOnFu7IOXn7MZF9ekjHh6Os3XZXPDk9f6iSR sb1Q+8jjPNvdSizFGYmGWsxFxYkAcVSV03wCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170703084232epcas1p4b0b9b7e03aef4d024c33cbc592434b54 X-Msg-Generator: CA X-Sender-IP: 182.195.42.79 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: 101P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170703084232epcas1p4b0b9b7e03aef4d024c33cbc592434b54 X-RootMTR: 20170703084232epcas1p4b0b9b7e03aef4d024c33cbc592434b54 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/analogix-anx78xx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix-anx78xx.c b/drivers/gpu/drm/bridge/analogix-anx78xx.c index 9006578..c2fac39 100644 --- a/drivers/gpu/drm/bridge/analogix-anx78xx.c +++ b/drivers/gpu/drm/bridge/analogix-anx78xx.c @@ -1438,11 +1438,7 @@ static int anx78xx_i2c_probe(struct i2c_client *client, anx78xx->bridge.funcs = &anx78xx_bridge_funcs; - err = drm_bridge_add(&anx78xx->bridge); - if (err < 0) { - DRM_ERROR("Failed to add drm bridge: %d\n", err); - goto err_poweroff; - } + drm_bridge_add(&anx78xx->bridge); /* If cable is pulled out, just poweroff and wait for HPD event */ if (!gpiod_get_value(anx78xx->pdata.gpiod_hpd))