From patchwork Mon Jul 3 08:42:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9822235 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 A6BB060246 for ; Mon, 3 Jul 2017 08:43:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9AE1B28504 for ; Mon, 3 Jul 2017 08:43:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F92C28542; Mon, 3 Jul 2017 08:43:17 +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 0F19B28504 for ; Mon, 3 Jul 2017 08:43:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4290D6E228; 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 mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTPS id A7D116E220 for ; Mon, 3 Jul 2017 08:42:35 +0000 (UTC) Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20170703084234epoutp03552a4aceb58e8965e4d624b8706c8b4a~NxXRBZXvA2737527375epoutp03b; Mon, 3 Jul 2017 08:42:34 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.40.65]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170703084233epcas1p42968e9490e9eb1a6036c7c084dd8a9e1~NxXQja_Sz1421514215epcas1p42; Mon, 3 Jul 2017 08:42:33 +0000 (GMT) Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id E9.3E.06839.9730A595; Mon, 3 Jul 2017 17:42:33 +0900 (KST) Received: from epsmgms2p1.samsung.com (unknown [182.195.42.79]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170703084233epcas1p4d30db0ba6db68ec5b697dd9939f45ae1~NxXQZddpN1730417304epcas1p4r; Mon, 3 Jul 2017 08:42:33 +0000 (GMT) X-AuditID: b6c32a35-f794c6d000001ab7-cf-595a03794668 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id F9.4D.05076.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 10/14] drm/bridge: tc358767: clean up drm_bridge_add call Date: Mon, 03 Jul 2017 17:42:26 +0900 Message-id: <1499071350-25168-11-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+NgFjrDKsWRmVeSWpSXmKPExsWy7bCmnm4lc1SkwbLZSha9504yWTR1vGW1 aDp0is2icfc2dovlZ9YxW1z5+p7NYtL9CSwO7B6X+3qZPBbvecnk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7z7O 5NFycj+LR9+WVYwB7FFuNhmpiSmpRQqpecn5KZl56bZKoSFuuhZKCnmJuam2ShG6viFBSgpl iTmlQJ6RARpwcA5wD1bSt0twy3j39hR7wTa2ioXPN7A1MG5j7WLk5JAQMJF40PKYCcIWk7hw bz1bFyMXh5DAakaJ03fnMEM4PxglnqzrYwapYhNQlZi44j4biC0ioCzxd+IqRpAiZoE5jBJL nvWCjRUW8JS49/sCO4jNAtTQc+AB2ApeAVeJX7dWskOsk5M4eWwyWD0nUHzq1xtgC4QEXCSu Hb3IOoGRdwEjwypGrtSC4tz03GKjAsNNjMCA3nZYy38H44+z0YcYBTgYlXh4XxRHRgqxJpYV V+YeYpTgYFYS4ZVliIoU4k1JrKxKLcqPLyrNSS0+xGgKdMpEZinR5HxgtOWVxBuaWBqZGJiZ GRoZGJspifNOCPwSISSQnliSmp2aWpBaBNPHxMEp1cCYK3PwXO7xjlMF32d8eXI7g81VqO/7 05iUNMc4Ab8gyf9dnVVcJzfdT/arNrqvL6TJcuZzvHXax/qrJ78rhfEXBDa4T8x0Vqn5zhgo fWz5Ut1qX66P/jMnWGcby2ko7ur51inx0aKLK1YxZMqtZb9S5CrfhOtaHQiZqfvV7d2e62na MeITtiuxFGckGmoxFxUnAgB5OMkmfgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170703084233epcas1p4d30db0ba6db68ec5b697dd9939f45ae1 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: 20170703084233epcas1p4d30db0ba6db68ec5b697dd9939f45ae1 X-RootMTR: 20170703084233epcas1p4d30db0ba6db68ec5b697dd9939f45ae1 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/tc358767.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 5c26488..12a35f9 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1325,11 +1325,7 @@ static int tc_probe(struct i2c_client *client, const struct i2c_device_id *id) tc->bridge.funcs = &tc_bridge_funcs; tc->bridge.of_node = dev->of_node; - ret = drm_bridge_add(&tc->bridge); - if (ret) { - dev_err(dev, "Failed to add drm_bridge: %d\n", ret); - goto err_unregister_aux; - } + drm_bridge_add(&tc->bridge); i2c_set_clientdata(client, tc);