Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953300pxk; Mon, 21 Sep 2020 01:05:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzklAG2Htvokfx97UAmV+H1OAQIOcV0iHYIPnDfSDsYoEPDmoHVUxd1U9SSb7Up54u/18Yf X-Received: by 2002:a17:906:cc99:: with SMTP id oq25mr37160974ejb.292.1600675527727; Mon, 21 Sep 2020 01:05:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675527; cv=none; d=google.com; s=arc-20160816; b=fNDAqypmiBpVm7Dz64Z/F4KANdGujTBWxSTg7OLAZwYA9MqhuUcHfpgVNdezYqPMce Sif1BnQ8csSkMYhDCNgPKO0ocqwgoOtgiCLYl4G/y6ea9J1CpNdnx43fZclomOwcfCvC +ZtdGzq/9EJLkbK1rGVsK82TTVPYqgjftZvUb9O8/0bxdIiBU0HYctVQ+oVE1Z/hzNFg spkD0F6JmyGn0RHJBgfTMRxuqRRKZVcL0hqR/w8L5OEZo2AFfDV88/tDc8mYftAmMKvu RxczoVPkprMT+u5Q9KGQieOxD/TjCX3WhUBvJnCL3NJgFqPheX71IeZj9qYiG1xelN3n 1Wsw== 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=dRCebmShT53wHpBYoPPkMBWE1+5PZ3FW0u/myJBDOcA=; b=fpeN2MKavQMxBfzHI0rU1CKUvuhOwMqNxg22UKcScEv4QERX13l0mEMEbSrW4R45H/ UmY8AySdjjqRVvh6mn6uZyY2aiPJVGANPQ4jJfuK2hXfdcCyMv07qIBOlpCIhDI3cvAd aDx2lRl9va7DhLOUL2BTt0dVtwf0RXkqouxbzyArurkv9paUgptl4olRWSQc4L5jh1FP VSpKtzaEVBHP1saDtfV/hWJzguWaRrRwJle0Wh4mI3N/QjwLqc/E25rcFxVckC4Wmg5U hSlMubvWewR+wOuA2IikpXX9geCpr4CEEjVPCwqIyrMN9J2aTwHpLloug3NGPTL8LVNb 1WiA== 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 c6si8212839edq.397.2020.09.21.01.05.04; Mon, 21 Sep 2020 01:05:27 -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 S1726488AbgIUIDJ (ORCPT + 99 others); Mon, 21 Sep 2020 04:03:09 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13787 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726898AbgIUICa (ORCPT ); Mon, 21 Sep 2020 04:02:30 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id B9DCD56D65C1DD58DE1D; Mon, 21 Sep 2020 16:02:28 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:18 +0800 From: Liu Shixin To: Bartlomiej Zolnierkiewicz CC: , , , , Liu Shixin Subject: [PATCH -next] omapfb: simplify the return expression of panel_dpi_connect Date: Mon, 21 Sep 2020 16:24:43 +0800 Message-ID: <20200921082443.2591721-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 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/panel-dpi.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c index 37c9f5bfaefe..ff3d1e8e1e7b 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c @@ -37,16 +37,11 @@ static int panel_dpi_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.dpi->connect(in, dssdev); - if (r) - return r; - - return 0; + return in->ops.dpi->connect(in, dssdev); } static void panel_dpi_disconnect(struct omap_dss_device *dssdev) -- 2.25.1