From patchwork Mon Jul 3 08:42:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9822231 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 49D8460246 for ; Mon, 3 Jul 2017 08:43:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DB0928396 for ; Mon, 3 Jul 2017 08:43:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 328E62852D; Mon, 3 Jul 2017 08:43:10 +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 2AF2428396 for ; Mon, 3 Jul 2017 08:43:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0A6C56E22F; Mon, 3 Jul 2017 08:42:38 +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 389706E21A for ; Mon, 3 Jul 2017 08:42:36 +0000 (UTC) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20170703084234epoutp02aeea6e313575ccb582652a961d75df9e~NxXRaix2J0863208632epoutp02-; Mon, 3 Jul 2017 08:42:34 +0000 (GMT) Received: from epsmges5p1.samsung.com (unknown [182.195.40.66]) by epcas1p3.samsung.com (KnoxPortal) with ESMTP id 20170703084234epcas1p382e03627b8eb9d0f99f543adb763787a~NxXRHTUC50069200692epcas1p3b; Mon, 3 Jul 2017 08:42:34 +0000 (GMT) Received: from epcas5p3.samsung.com ( [182.195.41.41]) by epsmges5p1.samsung.com (EPCPMTA) with SMTP id 3B.08.04764.A730A595; Mon, 3 Jul 2017 17:42:34 +0900 (KST) Received: from epsmgms2p2.samsung.com (unknown [182.195.42.80]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20170703084233epcas5p1dbabf330e10fc4f88c420789499d2a36~NxXQ1iq0z1986919869epcas5p1Z; Mon, 3 Jul 2017 08:42:33 +0000 (GMT) X-AuditID: b6c32a2c-f79e76d00000129c-fd-595a037ad6f3 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2.samsung.com (Symantec Messaging Gateway) with SMTP id B3.AA.05071.9730A595; Mon, 3 Jul 2017 17:42:33 +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:33 +0900 (KST) From: Inki Dae To: dri-devel@lists.freedesktop.org Subject: [PATCH 13/14] drm/mediatek: hdmi: clean up drm_bridge_add call Date: Mon, 03 Jul 2017 17:42:29 +0900 Message-id: <1499071350-25168-14-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+NgFjrDKsWRmVeSWpSXmKPExsWy7bCmpm4Vc1Skwcb9nBa9504yWTR1vGW1 aDp0is2icfc2dovlZ9YxW1z5+p7NYtL9CSwO7B6X+3qZPBbvecnkcefaHjaP7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PW4332c yaPl5H4Wj74tqxgD2KPcbDJSE1NSixRS85LzUzLz0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTK EnNKgTwjAzTg4BzgHqykb5fglnF530mmguNsFdfXzGRvYDzK2sXIySEhYCIxo/0OI4QtJnHh 3nq2LkYuDiGB1YwSG553s0A4PxglnqzrYwapYhNQlZi44j4biC0ioCzxd+IqRpAiZoE5jBJL nvWCjRUWcJdYv/wkO4jNAtRwZMtSMJtXwFVixcwfTBDr5CROHpsMVs8JFJ/69QbYAiEBF4lr Ry+yTmDkXcDIsIqRK7WgODc9t9iowGgTIzCgtx3WCtjB2HQu+hCjAAejEg/vi+LISCHWxLLi ytxDjBIczEoivLIMUZFCvCmJlVWpRfnxRaU5qcWHGE2BTpnILCWanA+MtrySeEMTSyMTAzMz QyMDYzMlcd4JgV8ihATSE0tSs1NTC1KLYPqYODilGhh3a1evfByyoD0ySEez915vy6uXv2/m c06xWqx1prp+b8S5nWrSW8SZT3olrWT0frTFmjuQRaeM3TD4lIvCJ5Fu5/79UyL18rfuEfNO kZF9/lT5V8mc2NcXbPOZp31Z7VjVpLVibs+qhHXzmOSvCHBxnX/+1+H7soqGQ161HFyy2auE OlZ/j1ZiKc5INNRiLipOBAD4mhiCfgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170703084233epcas5p1dbabf330e10fc4f88c420789499d2a36 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: 20170703084233epcas5p1dbabf330e10fc4f88c420789499d2a36 X-RootMTR: 20170703084233epcas5p1dbabf330e10fc4f88c420789499d2a36 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 Acked-by: CK Hu --- drivers/gpu/drm/mediatek/mtk_hdmi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_hdmi.c b/drivers/gpu/drm/mediatek/mtk_hdmi.c index 0a4ffd7..62652ee 100644 --- a/drivers/gpu/drm/mediatek/mtk_hdmi.c +++ b/drivers/gpu/drm/mediatek/mtk_hdmi.c @@ -1697,11 +1697,7 @@ static int mtk_drm_hdmi_probe(struct platform_device *pdev) hdmi->bridge.funcs = &mtk_hdmi_bridge_funcs; hdmi->bridge.of_node = pdev->dev.of_node; - ret = drm_bridge_add(&hdmi->bridge); - if (ret) { - dev_err(dev, "failed to add bridge, ret = %d\n", ret); - return ret; - } + drm_bridge_add(&hdmi->bridge); ret = mtk_hdmi_clk_enable_audio(hdmi); if (ret) {