From patchwork Mon Jul 3 08:42:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9822245 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 3373C60246 for ; Mon, 3 Jul 2017 08:43:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2739428504 for ; Mon, 3 Jul 2017 08:43:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1C0F12853A; Mon, 3 Jul 2017 08:43:35 +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 A7C8728504 for ; Mon, 3 Jul 2017 08:43:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E5206E23A; 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 775DB6E228 for ; Mon, 3 Jul 2017 08:42:37 +0000 (UTC) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20170703084234epoutp02a1ceab852291ca97deb3949744c9a3fa~NxXRb_9tp0863208632epoutp02A; Mon, 3 Jul 2017 08:42:34 +0000 (GMT) Received: from epsmges5p1.samsung.com (unknown [182.195.40.68]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170703084234epcas1p299459c10d319c15b570ddde28d5c5d03~NxXRIAB621217612176epcas1p2B; 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 4B.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 20170703084234epcas5p1095418cf48287cc318db72b628d5cb28~NxXQ8m8WB1986319863epcas5p1g; Mon, 3 Jul 2017 08:42:34 +0000 (GMT) X-AuditID: b6c32a2c-f79e76d00000129c-fe-595a037a3c1b Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 34.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 14/14] drm/sti: sti_vdo: clean up drm_bridge_add call Date: Mon, 03 Jul 2017 17:42:30 +0900 Message-id: <1499071350-25168-15-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+NgFjrJKsWRmVeSWpSXmKPExsWy7bCmpm4Vc1SkwaGZXBa9504yWTR1vGW1 aDp0is2icfc2dovlZ9YxW1z5+p7NYtL9CSwO7B6X+3qZPBbvecnkcefaHjaP7d8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z7O 5NFycj+LR9+WVYwB7FFuNhmpiSmpRQqpecn5KZl56bZKoSFuuhZKCnmJuam2ShG6viFBSgpl iTmlQJ6RARpwcA5wD1bSt0twy1jafJatYCtbxecjO9gbGNexdjFyckgImEgc+9PODGGLSVy4 t54NxBYSWM0oseKkQhcjF5D9g1Hiybo+sCI2AVWJiSvugxWJCChL/J24ihGkiFlgDqPEkme9 QFM5OIQFXCUu91SD1LAA1e84fR2snhcofOTGBEaIZXISJ49NBjuCEyg+9esNZojFLhLXjl5k ncDIu4CRYRUjV2pBcW56brFRgdEmRmAwbzusFbCDselc9CFGAQ5GJR7eF8WRkUKsiWXFlbmH GCU4mJVEeGUZoiKFeFMSK6tSi/Lji0pzUosPMZoCnTKRWUo0OR8YaXkl8YYmlkYmBmZmhkYG xmZK4rwTAr9ECAmkJ5akZqemFqQWwfQxcXBKNTCKCvU6GuyXvH/oZZAY+9V7t6YfEX7vforX 4ZPMMine4NZtnfyznc/ESz3XWKjjKFt2d+O8nxfX1Sx0//TdT2LN5AVPi7KmnwivXBoguFV/ 6h1V45ykL/PygxfNdvfbMPUX98Lc7Xn2X4Rvl8nkSwu/TbJu9Iu6z7NUabrsV153Jk1dybdl pZJKLMUZiYZazEXFiQDTm96HfAIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170703084234epcas5p1095418cf48287cc318db72b628d5cb28 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: 20170703084234epcas5p1095418cf48287cc318db72b628d5cb28 X-RootMTR: 20170703084234epcas5p1095418cf48287cc318db72b628d5cb28 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 Reviewed-by: Sean Paul --- drivers/gpu/drm/sti/sti_dvo.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_dvo.c b/drivers/gpu/drm/sti/sti_dvo.c index 24ebc6b..dcc2c22 100644 --- a/drivers/gpu/drm/sti/sti_dvo.c +++ b/drivers/gpu/drm/sti/sti_dvo.c @@ -464,11 +464,7 @@ static int sti_dvo_bind(struct device *dev, struct device *master, void *data) bridge->driver_private = dvo; bridge->funcs = &sti_dvo_bridge_funcs; bridge->of_node = dvo->dev.of_node; - err = drm_bridge_add(bridge); - if (err) { - DRM_ERROR("Failed to add bridge\n"); - return err; - } + drm_bridge_add(bridge); err = drm_bridge_attach(encoder, bridge, NULL); if (err) {