Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1866371pxj; Sat, 5 Jun 2021 05:37:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8sPbTcklJvG+Nu/Fm2MhhhAnfUoHB6/SFTFe0MTnWiYOMkXCrjE1giPZ27Hv1MxJq0Mww X-Received: by 2002:a17:906:85d5:: with SMTP id i21mr7321649ejy.360.1622896621853; Sat, 05 Jun 2021 05:37:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622896621; cv=none; d=google.com; s=arc-20160816; b=Ncbsx5ofNg2t6uTj0iQokd0WP1I9rZJ4uN9O82gHo2nVi0QojXuPOG1TOaKktGznQ0 LeFkDm24nAZWrWTM0qxwbEESvfAkmAwbzdFerziqnpPkXr8gMMgxgXLo3su8/9fvs/iO EuvsPboN//X3szHzT6/tEkRrp+anASs3NRW4OL/YQtdjz5bOnvJP1DCPGZgLzE2qPUfC Ohft97so/guok+pllcHgJ+4CnjjirS/NlbkPzP5vLoNyPUiC/qNMK74rVuxaDbZHKxCd twSGrdQhRL18P5a9l3w4liEm56Tq6vTgBnu7ayoNdIjWnyfWZURtMs5GSeAqm1XJaHQI i0Yw== 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:to:from; bh=PTv7saZaeea3zWvDczdYFNA2THW3zLzzZ3NKoICCJd0=; b=SawSP0wC7wRZbg148oDeexQzH9hJ3pynCWCNiBd0KQ7kZjsgXRqtS1BtsR60eJKqWP mDEQUwZZVWQIJ3STMW8sH1NUWz120OEylbmVg1oaeNEtz7Goj92mzL+QdsMkE7ZSkUXo rdAVTWaRxGZ24xwFsFGEPM4abd9/i+YByy9Vpj315W1ek5CgbXBFABBHlrt6262JbXyo ZKV3bltp0Axw32rUOINVMh2kpSG8aH9dLR901pLeq+NuCIrJ/Ml2MPPtAID1uS2m37/2 9unkTxFUvR2XITt1BvfQXd52dzVLSQmYKVU3pFkLhA/0FhQVWl1Pkhr57gvgQL7/FrFL PwKA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si8046714ejl.394.2021.06.05.05.36.37; Sat, 05 Jun 2021 05:37:01 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229931AbhFEMhf (ORCPT + 99 others); Sat, 5 Jun 2021 08:37:35 -0400 Received: from mail-m17639.qiye.163.com ([59.111.176.39]:51496 "EHLO mail-m17639.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229902AbhFEMhf (ORCPT ); Sat, 5 Jun 2021 08:37:35 -0400 Received: from ubuntu.localdomain (unknown [36.152.145.181]) by mail-m17639.qiye.163.com (Hmail) with ESMTPA id 321F4380146; Sat, 5 Jun 2021 20:35:45 +0800 (CST) From: Bernard Zhao To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Kuogee Hsieh , Stephen Boyd , Bernard Zhao , Guenter Roeck , Chandan Uddaraju , Abhinav Kumar , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/msm: remove no need local variable Date: Sat, 5 Jun 2021 05:35:20 -0700 Message-Id: <20210605123543.8986-1-bernard@vivo.com> X-Mailer: git-send-email 2.31.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZQkgdGFZJGB1OHx5DSk5OGENVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWUFZT0tIVUpKS0 hKQ1VLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6OUk6Dhw5Hz8XGQkaCx4KDhkt MB8wCy9VSlVKTUlJQ0JNTk9NSk5NVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlITVVK TklVSk9OVUpDSllXWQgBWUFJSE5INwY+ X-HM-Tid: 0a79dc2c0f02d994kuws321f4380146 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Unneeded variable: "ret". Return "0" on line 880 Signed-off-by: Bernard Zhao --- drivers/gpu/drm/msm/dp/dp_panel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/dp/dp_panel.c b/drivers/gpu/drm/msm/dp/dp_panel.c index 9cc816663668..8cb3d016101c 100644 --- a/drivers/gpu/drm/msm/dp/dp_panel.c +++ b/drivers/gpu/drm/msm/dp/dp_panel.c @@ -351,7 +351,6 @@ void dp_panel_dump_regs(struct dp_panel *dp_panel) int dp_panel_timing_cfg(struct dp_panel *dp_panel) { - int rc = 0; u32 data, total_ver, total_hor; struct dp_catalog *catalog; struct dp_panel_private *panel; @@ -404,7 +403,7 @@ int dp_panel_timing_cfg(struct dp_panel *dp_panel) dp_catalog_panel_timing_cfg(catalog); panel->panel_on = true; - return rc; + return 0; } int dp_panel_init_panel_info(struct dp_panel *dp_panel) -- 2.31.0