Message ID | 1499071350-25168-10-git-send-email-inki.dae@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 1DF1C60246 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 3 Jul 2017 08:42:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11F8828396 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 3 Jul 2017 08:42:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06D152852D; Mon, 3 Jul 2017 08:42:47 +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 BE7EF28396 for <patchwork-dri-devel@patchwork.kernel.org>; Mon, 3 Jul 2017 08:42:46 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A4F296E22A; Mon, 3 Jul 2017 08:42:37 +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 C7AB46E21D for <dri-devel@lists.freedesktop.org>; Mon, 3 Jul 2017 08:42:35 +0000 (UTC) Received: from epcas1p2.samsung.com (unknown [182.195.41.46]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20170703084233epoutp0346437c8094b1dcee8f47cfc7971f2ab9~NxXQsoCGP2733227332epoutp032; 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 20170703084233epcas1p30d10fdbe800a4fb68cb5f28d64a5d6f8~NxXQb-7_82863728637epcas1p3z; Mon, 3 Jul 2017 08:42:33 +0000 (GMT) Received: from epcas5p2.samsung.com ( [182.195.41.40]) by epsmges5p3.samsung.com (EPCPMTA) with SMTP id 43.08.04762.9730A595; Mon, 3 Jul 2017 17:42:33 +0900 (KST) Received: from epsmgms2p2.samsung.com (unknown [182.195.42.80]) by epcas5p1.samsung.com (KnoxPortal) with ESMTP id 20170703084233epcas5p1937d7b7f6e04d6c69efadd9149d5caed~NxXQP2iJ22214622146epcas5p1O; Mon, 3 Jul 2017 08:42:33 +0000 (GMT) X-AuditID: b6c32a2e-f79746d00000129a-bf-595a0379f909 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p2.samsung.com (Symantec Messaging Gateway) with SMTP id 32.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 <inki.dae@samsung.com> To: dri-devel@lists.freedesktop.org Subject: [PATCH 09/14] drm/bridge: synopsys: dw-hdmi: clean up drm_bridge_add call Date: Mon, 03 Jul 2017 17:42:25 +0900 Message-id: <1499071350-25168-10-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+NgFjrDKsWRmVeSWpSXmKPExsWy7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KPExsVy+t9jQd1K5qhIg/fr+Sx6z51ksmjqeMtq 0XToFJtF4+5t7BbLz6xjtrjy9T2bxaT7E1gc2D0u9/UyeSze85LJ4861PWwe2789YPW4332c yaPl5H4Wj74tqxgD2KPcbDJSE1NSixRS85LzUzLz0m2VQkPcdC2UFPISc1NtlSJ0fUOClBTK EnNKgTwjAzTg4BzgHqykb5fglnFk7hvWgi9sFetmvWRqYLzL2sXIySEhYCIxu2UpO4QtJnHh 3nq2LkYuDiGB1YwSFz/eYoJwfjBKPFnXxwxSxSagKjFxxX02EFtEQFni78RVjCBFzAJzGCWW POsFGyssECJxp+EEWBELUMOzaa/AVvAKuEqs7lvEBrFOTuLksclg9ZxA8alfb4AtEBJwkbh2 9CLrBEbeBYwMqxi5UguKc9Nzi40KjDYxAgN622GtgB2MTeeiDzEKcDAq8fC+KI6MFGJNLCuu zD3EKMHBrCTCK8sQFSnEm5JYWZValB9fVJqTWnyI0RTolInMUqLJ+cBoyyuJNzSxNDIxMDMz NDIwNlMS550Q+CVCSCA9sSQ1OzW1ILUIpo+Jg1OqgdF54mtpnh9fgt4v8OqTvchUm+2/ZtbF YKdLL69sKvn/Slfi2QnDqXJ3pnu7VdU8/yR2SPWp6KPuPb9EJy5dWarjaPqUfbZ2ZOM5WaZq 2Qu+N/p3uNv8iGT6/XjDqulT5QqNFv77E5vQO2Ulf0qhG5cmU8X9Fy/bOT7eyf+k0hkws2Wp e1Sk+yQlluKMREMt5qLiRADTgg68fgIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170703084233epcas5p1937d7b7f6e04d6c69efadd9149d5caed 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: 20170703084233epcas5p1937d7b7f6e04d6c69efadd9149d5caed X-RootMTR: 20170703084233epcas5p1937d7b7f6e04d6c69efadd9149d5caed References: <1499071350-25168-1-git-send-email-inki.dae@samsung.com> <CGME20170703084233epcas5p1937d7b7f6e04d6c69efadd9149d5caed@epcas5p1.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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index ead1124..de1308b 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2485,17 +2485,12 @@ int dw_hdmi_probe(struct platform_device *pdev, const struct dw_hdmi_plat_data *plat_data) { struct dw_hdmi *hdmi; - int ret; hdmi = __dw_hdmi_probe(pdev, plat_data); if (IS_ERR(hdmi)) return PTR_ERR(hdmi); - ret = drm_bridge_add(&hdmi->bridge); - if (ret < 0) { - __dw_hdmi_remove(hdmi); - return ret; - } + drm_bridge_add(&hdmi->bridge); return 0; }
This patch removes unnecessary checking of return value. Signed-off-by: Inki Dae <inki.dae@samsung.com> --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)