Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3134438pxk; Mon, 21 Sep 2020 06:12:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOj8fndzZbfxEZGLUwBy280JaJte7jiZIFLF7xtdBYFtNPhq5WaPqICB+yz8szwf9hipnV X-Received: by 2002:a17:906:841a:: with SMTP id n26mr49402819ejx.213.1600693965916; Mon, 21 Sep 2020 06:12:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600693965; cv=none; d=google.com; s=arc-20160816; b=qoyYFHnUvg+AfAEN6GNKonxgFa5LDYTgCw8lF17X7C3e+U5xIC7ILBLGfa35xzLwAx rGEgY+yWvVOF5fGghecq7S2qUwG6ECFQC7knrZDWHhVk1B26J36jj0giWU8FQSjctnzU DlRaJqkIVxVUUkNcW5FiSoLQW//ML5Mwwpx0tJ9nVBaHYqSYD6m6kQ6Gsb12qpLx27aU nRlJebhXny2VgL5MoHjCSCyvtQApUYtpgCLwKuCJsCZ3dSXsKANYS2dMGAQvOQ2Wdxv9 UyKsCWtSgTeGqjgLV9ammhZzYzoA90VHuaknaZZXhUh55orjlUvCNhUYv+5XxAdOU9jj i0Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=aoCjEagrv+gWp6evzX71Yc32N+rY26ME7DQYYb5XdWA=; b=iujkJTwrl4ksrFksV2fT6rgt6oEhb98QvolAvjG0mI8OXhPBeo92YzFa8IVfpUuXLS 2kYIJ3P72iGX3dwnlUNlRO2z4zGfKa6yzR6Hc+EABW6ZyBLTyOopVv4DiOBNhOq4f6dN hUxpI113ub7DZlgYAhxfgDZQrJ2jrazGqYECzBQUNwoaR9Ac4IJFkoDijnkmQDsXArvz dxKTAR6dcEt4GLN67MMW3b0s+ewcMhcbsaIgGp2N0kimXexrvSMt5gtyd9JZ+gUO5CW/ FILQKagjn7ska9q5ybhKkaVOQOHqnzKf0y7iPxpNIf2Taa0muiEVfnoxVbb1uUvnn/Bf RQEw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id df7si10170915edb.271.2020.09.21.06.12.21; Mon, 21 Sep 2020 06:12:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727409AbgIUNKl (ORCPT + 99 others); Mon, 21 Sep 2020 09:10:41 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13805 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727380AbgIUNKk (ORCPT ); Mon, 21 Sep 2020 09:10:40 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3AB85507957FC64C9C34; Mon, 21 Sep 2020 21:10:35 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 21:10:25 +0800 From: Qinglang Miao To: Bartlomiej Zolnierkiewicz CC: , , , , "Qinglang Miao" Subject: [PATCH -next] omapfb: connector-analog-tv: simplify the return expression of tvc_connect() Date: Mon, 21 Sep 2020 21:10:49 +0800 Message-ID: <20200921131049.92616-1-miaoqinglang@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Qinglang Miao --- .../fbdev/omap2/omapfb/displays/connector-analog-tv.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c index 63bd13ba4..a9fd732f8 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-analog-tv.c @@ -47,18 +47,13 @@ static int tvc_connect(struct omap_dss_device *dssdev) { struct panel_drv_data *ddata = to_panel_data(dssdev); struct omap_dss_device *in = ddata->in; - int r; dev_dbg(ddata->dev, "connect\n"); if (omapdss_device_is_connected(dssdev)) return 0; - r = in->ops.atv->connect(in, dssdev); - if (r) - return r; - - return 0; + return in->ops.atv->connect(in, dssdev); } static void tvc_disconnect(struct omap_dss_device *dssdev) -- 2.23.0