Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp619535pxb; Tue, 2 Feb 2021 13:24:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxV8YXMaI/AgI5CWwsaiaM86el15PcLhU45I0BDi/0FazpEzWdmoSm1Tta5ZjNV6MKJHcrS X-Received: by 2002:a17:906:7d4f:: with SMTP id l15mr23501634ejp.95.1612301087338; Tue, 02 Feb 2021 13:24:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612301087; cv=none; d=google.com; s=arc-20160816; b=y4xdty4mcV+zfg+RsvtdpJAyAXNcNBLZqJ+5+zH9djsK2/xazy2uFm21Js4X3lW8Z2 CCGHsxSUJAlGUxQ+g8stuKqibw3cyPhzKkqRvQVIDUvxpRnjWPTy+GQoh66yBTV0IHId QF8jPZlkftxdjcyoQEVL0QZ4nt/OvQ6MsVuCYEnUIbaNKCSiUpEwsSJTwye6wOfw2ZB0 42Cn6uHVv3AuLpIHG+keepa6Ou80vwQIZ5etKIC5/VtoUTJXS02vB+FpioSvBy7RliRz OHIuE3Ot892EGutAbpEEliN7SDXOO3GzXpJbWbxNJTTb4Gfl+p5W96FspUVOP2+lFOUK teRw== 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=rSILbSsJ2cBuw66DB79HKlLxyDkNyBWVNcVr3VR7pcs=; b=QMcReXNk3uuhinMNet5qe4c2bbtkXcmkd3agIHJSFFesGFZXYTalyXBxzIMKypaKN6 nS2HXuWLFeZhLh6shGet3tMHyRGyKslQsw1qD9zZ98P7AfrnANkkM6XLzharP7hhH//d VbiLX3YGNCxIRH99o1GWrLJavMJmSqa0nWyRjSN5/Q6BFnEtpMR2ZozVULZoimEA3Ykc sSsxmoVDV8VkmkBs6eVomyLoRdEjEo6vXrpTwE+usov+IZoGOF4vUjJYjbg4XiUKQg6K /SvANMFNA01HnjlL0Q7oWJdmgpG3mYpm6prL8flLixx+Wf6Dv7252/T4jIUkt9pnLFiG 2OgA== 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 y13si13555824edd.436.2021.02.02.13.24.22; Tue, 02 Feb 2021 13:24:47 -0800 (PST) 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 S231299AbhBBMdS (ORCPT + 99 others); Tue, 2 Feb 2021 07:33:18 -0500 Received: from mail-m17640.qiye.163.com ([59.111.176.40]:59846 "EHLO mail-m17640.qiye.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231526AbhBBMdQ (ORCPT ); Tue, 2 Feb 2021 07:33:16 -0500 Received: from ubuntu.localdomain (unknown [157.0.31.124]) by mail-m17640.qiye.163.com (Hmail) with ESMTPA id 66E035401D8; Tue, 2 Feb 2021 20:32:25 +0800 (CST) From: Bernard Zhao To: Rob Clark , Sean Paul , David Airlie , Daniel Vetter , Kuogee Hsieh , Stephen Boyd , Abhinav Kumar , Guenter Roeck , Bernard Zhao , Chandan Uddaraju , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com Subject: [PATCH] drm/msm: remove unneeded variable: "rc" Date: Tue, 2 Feb 2021 04:32:03 -0800 Message-Id: <20210202123214.15787-1-bernard@vivo.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HM-Spam-Status: e1kfGhgUHx5ZQUtXWQgYFAkeWUFZS1VLWVdZKFlBSE83V1ktWUFJV1kPCR oVCBIfWUFZHUJLTk4aTh1JGElKVkpNSklJTUJKT05MSElVEwETFhoSFyQUDg9ZV1kWGg8SFR0UWU FZT0tIVUpKS0hNSlVLWQY+ X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6Mz46CCo4Fj8cFzY6Ii9NLCEQ DwEKFDVVSlVKTUpJSU1CSk9NS0JMVTMWGhIXVRkeCRUaCR87DRINFFUYFBZFWVdZEgtZQVlKTkxV S1VISlVKSU9ZV1kIAVlBSU9ISzcG X-HM-Tid: 0a7762bace45d995kuws66e035401d8 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org remove unneeded variable: "rc". 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 d1780bcac8cc..9cc816663668 100644 --- a/drivers/gpu/drm/msm/dp/dp_panel.c +++ b/drivers/gpu/drm/msm/dp/dp_panel.c @@ -409,7 +409,6 @@ int dp_panel_timing_cfg(struct dp_panel *dp_panel) int dp_panel_init_panel_info(struct dp_panel *dp_panel) { - int rc = 0; struct drm_display_mode *drm_mode; drm_mode = &dp_panel->dp_mode.drm_mode; @@ -436,7 +435,7 @@ int dp_panel_init_panel_info(struct dp_panel *dp_panel) min_t(u32, dp_panel->dp_mode.bpp, 30)); DRM_DEBUG_DP("updated bpp = %d\n", dp_panel->dp_mode.bpp); - return rc; + return 0; } struct dp_panel *dp_panel_get(struct dp_panel_in *in) -- 2.29.0