From patchwork Mon Jul 3 08:42:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inki Dae X-Patchwork-Id: 9822247 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 29F4560246 for ; Mon, 3 Jul 2017 08:43:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1DF2128504 for ; Mon, 3 Jul 2017 08:43:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12C112853A; Mon, 3 Jul 2017 08:43:42 +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 C1E4128504 for ; Mon, 3 Jul 2017 08:43:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4768F6E240; Mon, 3 Jul 2017 08:42:44 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout4.samsung.com (mailout4.samsung.com [203.254.224.34]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3ADDD6E220 for ; Mon, 3 Jul 2017 08:42:35 +0000 (UTC) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout4.samsung.com (KnoxPortal) with ESMTP id 20170703084233epoutp04d206b519e8a1b314e701a943ed822022~NxXQIwvBL2029820298epoutp049; Mon, 3 Jul 2017 08:42:33 +0000 (GMT) Received: from epsmges1p2.samsung.com (unknown [182.195.40.64]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20170703084232epcas1p25835ff1dbbb4ea8dee9db26cfafbfb31~NxXP3THCu1217612176epcas1p26; Mon, 3 Jul 2017 08:42:32 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p2.samsung.com (Symantec Messaging Gateway) with SMTP id 3C.49.06750.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 20170703084232epcas1p4f7be46256e775298129c0097844058e4~NxXPokruN1420314203epcas1p4n; Mon, 3 Jul 2017 08:42:32 +0000 (GMT) X-AuditID: b6c32a36-f79db6d000001a5e-d5-595a0378fc06 Received: from epmmp2 ( [203.254.227.17]) by epsmgms2p1.samsung.com (Symantec Messaging Gateway) with SMTP id 09.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 05/14] drm/bridge: nxp-ptn3460: clean up drm_bridge_add call Date: Mon, 03 Jul 2017 17:42:21 +0900 Message-id: <1499071350-25168-6-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+NgFjrFKsWRmVeSWpSXmKPExsWy7bCmrm4Fc1Skwa5pRha9504yWTR1vGW1 aDp0is2icfc2dovlZ9YxW1z5+p7NYtL9CSwO7B6X+3qZPBbvecnkcefaHj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nkcefaHjaP7d8esHrc7z7O 5NFycj+LR9+WVYwB7FFuNhmpiSmpRQqpecn5KZl56bZKoSFuuhZKCnmJuam2ShG6viFBSgpl iTmlQJ6RARpwcA5wD1bSt0twy1j1srhgB1vFyw0T2RoY97N2MXJySAiYSNyae5kdwhaTuHBv PVsXIxeHkMBqRon3v66zgSSEBH4wSmxcpw9iswmoSkxccR8sLiKgLPF34ipGkAZmgTmMEkue 9YJNFRbwkXgwYwdYEQtQw61JN1lAbF4BF4mmH3+gtslJnDw2GayeU8BVYurXG8wQy1wkrh29 yDqBkXcBI8MqRq7UguLc9NxiowLDTYzAYN52WMt/B+OPs9GHGAU4GJV4eF8UR0YKsSaWFVfm HmKU4GBWEuGVZYiKFOJNSaysSi3Kjy8qzUktPsRoCnTKRGYp0eR8YKTllcQbmlgamRiYmRka GRibKYnzTgj8EiEkkJ5YkpqdmlqQWgTTx8TBKdXAqPgi8Z9HujnLv6WTr/r7cD8ulY16zPz+ bYNC3GsFhkd/Q9ktDtzWehiwT9rIUUD8Hvfvf1OkFWrOKnjL8eXzL3jwfE+++RSTSPZzaff3 Bpmqx5k+ebU5Y8NhCZ//j246hAp91mILe+Jmp7NEq8tm+VLtA/Hbr0Tw2LpwyFwI1c1OqWT6 fuuPEktxRqKhFnNRcSIAZVmOvHwCAAA= X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170703084232epcas1p4f7be46256e775298129c0097844058e4 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: 20170703084232epcas1p4f7be46256e775298129c0097844058e4 X-RootMTR: 20170703084232epcas1p4f7be46256e775298129c0097844058e4 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/nxp-ptn3460.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/bridge/nxp-ptn3460.c b/drivers/gpu/drm/bridge/nxp-ptn3460.c index 4f64e71..f0b5d0f 100644 --- a/drivers/gpu/drm/bridge/nxp-ptn3460.c +++ b/drivers/gpu/drm/bridge/nxp-ptn3460.c @@ -332,11 +332,7 @@ static int ptn3460_probe(struct i2c_client *client, ptn_bridge->bridge.funcs = &ptn3460_bridge_funcs; ptn_bridge->bridge.of_node = dev->of_node; - ret = drm_bridge_add(&ptn_bridge->bridge); - if (ret) { - DRM_ERROR("Failed to add bridge\n"); - return ret; - } + drm_bridge_add(&ptn_bridge->bridge); i2c_set_clientdata(client, ptn_bridge);