Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2954152pxk; Mon, 21 Sep 2020 01:07:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAdfariVKSUzY4ILvfghH1TgIDihe9wGWnQ0jubPWCzH6t+rnPdOhkJbPj8kbmJ4VpiHqT X-Received: by 2002:aa7:c308:: with SMTP id l8mr50625647edq.361.1600675638149; Mon, 21 Sep 2020 01:07:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675638; cv=none; d=google.com; s=arc-20160816; b=YQHgYZb95/3ANu6Y6odW7sGtMjwaE5nZfxpx1JH4axqghuZDWaiX1BznG8fbXoQw9/ Hs7j02bjo5Rgo03bjaAQo6WR908jNzFcoY6NFpzyNN/vwwzW5QMI9CsPuoB7TMhEuIsv q0EAYlvnjDHxVlQq/zaikVc9VzYRA315GA9Z2396EQvAKSKz3BH/ERvb+Z+rKbVv0dBI EolLEnozwiljAjHKj5pAv3ZVM63yZxzsDTKnwFjInc27rOvCGZcwtY2a3gYuKKXxIqsW MXKuI7lgJBWUN72Nn04eSLQEIRYZkqi8eD13jo4kHD0xu5CWh+ysasbatlouA51XK7a9 2Xag== 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=6Iibdgso+FNtNemPeW0Q9bkbwu3izGCjEJZtjOhZ5W0=; b=BXWpMBx4bM3np3UaRUnsc6px9uWdP1FmFDzGF5jvEOk/GeJcDVuAGQOS8aGPEkihDF 7CPZKI9ncRwTU2opb50QcHQqZ04tOm3WUwV8tSROeGLUBWkGNT3O79PT9rYCqhhk0AEp Rj5KOTs3gKfEvuewXH+liVYQkFof1gvOkJpfBMkK0IJbHmz+dX2AfvtiGYznVAl8zSy6 VYOWmdBe5CcHXrm/c2mOUQFpHV2Fxl+e6ZpoT7jURpv2LnWqaVlWz5pcPOTImHc7bgsf 6+Ko/IU/d1CbERcgCf6jSff4BBetKs1kWSgSnWcR2r/DdLrZda8509RmqhcIuWGuQ9DR YFrw== 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 e23si10007768ejl.643.2020.09.21.01.06.55; Mon, 21 Sep 2020 01:07:18 -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 S1726715AbgIUICx (ORCPT + 99 others); Mon, 21 Sep 2020 04:02:53 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:48318 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726921AbgIUICd (ORCPT ); Mon, 21 Sep 2020 04:02:33 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 7C1B91F37484FC24A70D; Mon, 21 Sep 2020 16:02:30 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:21 +0800 From: Liu Shixin To: Bartlomiej Zolnierkiewicz CC: , , , , Liu Shixin Subject: [PATCH -next] omapfb: simplify the return expression of tpo_td043_connect Date: Mon, 21 Sep 2020 16:24:45 +0800 Message-ID: <20200921082445.2591825-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 --- .../fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c index bb85b21f0724..afac1d9445aa 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-tpo-td043mtea1.c @@ -337,16 +337,11 @@ static int tpo_td043_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 tpo_td043_disconnect(struct omap_dss_device *dssdev) -- 2.25.1