Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2953848pxk; Mon, 21 Sep 2020 01:06:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzxNd7alC0d7y1k12GzEe0ftgEVOpdgfuVw0V3PU4FtFa8uwsvchkqpedm8QCsDgQEXtO7 X-Received: by 2002:a17:906:474f:: with SMTP id j15mr51365186ejs.468.1600675598702; Mon, 21 Sep 2020 01:06:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600675598; cv=none; d=google.com; s=arc-20160816; b=EFiv0osxsRb1hvNylWmo1AUmflSQA5m0S7wClM1aph2MTGccKk4DbV31NTMSyvw60P OzjQQf88xQZmOXcvVAgH+CBiDgTRmLMFR6G6tr0YGjSD1UxP/q81DesswBHlzeSIvuat 288wv8IP1CiWUT6IM6krfhsYecmGnQxAURWzfYpf/a+gOeT2oxk3X8RVzMlHzTt6tFvF 4QfXWamkC8F+dOOU/+mBzaCaXJL3gMzXjhDDrLmEfmksY6EDYcC1/VDhLtqRySjD7f/b RbstCqGD6geImEZmusGZlnhQ6QleBHYM82mnM+wqnYeqD5uPM1YRgDMtKfIgTwM+4Hq3 e7Jw== 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=ii1WEWx3CkBbjlZl1Z7S38SJm65HPcePhnKlmoYU/ds=; b=Laa+l2cIrYoQnf8XNr6vJPr9BR4u7whx5MXoWzuzRls/3bkmrEd+io7DRHKFH2uUO7 7/mJq35w14K2tWuJ9TsF1G6TdTT9uI4LD3Wbh8mINwXXh+TVyLGHoK3vsI1pp6zQh+QO +hUK6Xhpyi0YSbhGxkZDgKE3eqRcIw8h7/t5EMcdsPzD3kKwmA7D0rL874k6uBFwL8YW 58cm9uw/2apag1+jzt2cnRS49f0lWy1YpUk6ChAJVhTdSCD++0b8zSeeP1D8r09P4tPy LnrTz1V2CRVq3aftYCDEodemX0GpgnUzl2HLbe8otQYUp4uKf0HaxxQNRW3mmbvcRgJF 1YVg== 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 g19si7794012eds.240.2020.09.21.01.06.15; Mon, 21 Sep 2020 01:06:38 -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 S1727020AbgIUIDL (ORCPT + 99 others); Mon, 21 Sep 2020 04:03:11 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13788 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726912AbgIUICc (ORCPT ); Mon, 21 Sep 2020 04:02:32 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 050CCA74C558471195E2; Mon, 21 Sep 2020 16:02:30 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Mon, 21 Sep 2020 16:02:20 +0800 From: Liu Shixin To: Bartlomiej Zolnierkiewicz CC: , , , , Liu Shixin Subject: [PATCH -next] omapfb: simplify the return expression of sharp_ls_connect Date: Mon, 21 Sep 2020 16:24:44 +0800 Message-ID: <20200921082444.2591773-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-sharp-ls037v7dw01.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c index a3912fc8031f..602324c5c9f9 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sharp-ls037v7dw01.c @@ -59,16 +59,11 @@ static int sharp_ls_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 sharp_ls_disconnect(struct omap_dss_device *dssdev) -- 2.25.1