Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2626360pxk; Mon, 14 Sep 2020 20:05:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/UYmRNbkVGbmraJjl19sf14ZwcalsH71gzTtfknPlFuuG1z/z7f5SOaiYgKWPgQrGxOkv X-Received: by 2002:a17:906:1b11:: with SMTP id o17mr18848722ejg.67.1600139136011; Mon, 14 Sep 2020 20:05:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600139136; cv=none; d=google.com; s=arc-20160816; b=fKEGYwnudfXygZM4mTGchCWzRmOMGNWcAofwxoC5yPdMjb6y6/Q4QqN2j8JT4a3vvc B3OGLIRbBBXYwioN9CykH0dRYfgZMm8BCjMTebXiFOY12/4lNsJYJDasrbObvnxjnTvD aEPbMttbFbvLZqtHVuREkXssO1Mk2+O89yKWYq/jzOZQKggK5k9SiI0koBGgc6vxAYtA Tgm6K5kwe4nHfAjmwUExTCnjTwCNIUCJ1ySgZhRHAp/D0DUAtB0+2ht5MxW89w1dwmXp WuZzmukNw8SGr8I/AtXE8dLDyzuZAUL/UV9JEyMCsbnADVVquUrm4QGKHodMc8RPbEqp EH1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HIIDNznYSVJlq5m71tCl3oBmZzqM8Sje2M+YENPB/2I=; b=1GTjqDKKqrAd/6U7VoDf1NvIQNN6YuBGgAT3FPILs7qYsg5x3xc2BNisKaTK4qMe4T Y8CVmZ7bAWfhuDDEcYAZR+F347U2H2o0ANGUvYbpCr1yFMJwx5HnBwW70nrvGRMHyrog uycG3vMDOHVUS7IkfJ0TW/y7R6N6xQqNUpHpeLrXQOgeGDsDLVUmBweFQ9G02ipEpyQA hqMJgM3TJgKkI+32XJ5UWorP3b3NX06HWYgNvVV7wEbu0qF+fY5cEzVQNWUX7cm31dau LPZDySLprat3na6EOisb0FiJSraKQT+2Doe+4PNYh1DLDhF6TrLQVcOaag6GEZ3ltolm X82w== 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 ba16si6997282edb.399.2020.09.14.20.05.13; Mon, 14 Sep 2020 20:05:35 -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 S1726179AbgIODET (ORCPT + 99 others); Mon, 14 Sep 2020 23:04:19 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:12283 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726119AbgIODEB (ORCPT ); Mon, 14 Sep 2020 23:04:01 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id EFB823644EABC9AC1BE0; Tue, 15 Sep 2020 11:03:58 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 11:03:49 +0800 From: Liu Shixin To: Bartlomiej Zolnierkiewicz CC: , , , , Liu Shixin Subject: [PATCH -next] omapfb: connector-dvi: simplify the return expression of dvic_connect() Date: Tue, 15 Sep 2020 11:26:27 +0800 Message-ID: <20200915032627.1772517-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c index b4a1aefff766..2fa436475b40 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c @@ -51,16 +51,11 @@ static int dvic_connect(struct omap_dss_device *dssdev) { struct panel_drv_data *ddata = to_panel_data(dssdev); struct omap_dss_device *in = ddata->in; - int r; if (omapdss_device_is_connected(dssdev)) return 0; - r = in->ops.dvi->connect(in, dssdev); - if (r) - return r; - - return 0; + return in->ops.dvi->connect(in, dssdev); } static void dvic_disconnect(struct omap_dss_device *dssdev) -- 2.25.1