From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C8D01C55178 for ; Thu, 29 Oct 2020 13:27:54 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64DD62075E for ; Thu, 29 Oct 2020 13:27:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64DD62075E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C93F96ECD1; Thu, 29 Oct 2020 13:27:50 +0000 (UTC) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8C06A6ECCE; Thu, 29 Oct 2020 13:27:48 +0000 (UTC) IronPort-SDR: 5gQk/eJ1c2WFbo6PFhiGz40V5uKwqrquYRGNZ6/o2UQAR5mBQ9wcH1MXJ1rl/d09UDUw+xjQu6 Zg1zlSap+knw== X-IronPort-AV: E=McAfee;i="6000,8403,9788"; a="253137281" X-IronPort-AV: E=Sophos;i="5.77,430,1596524400"; d="scan'208";a="253137281" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Oct 2020 06:27:48 -0700 IronPort-SDR: tCx8fBPfk+dxIcMBHFS0/6FZmrAa+Ju2lsYykZeBNKcrzw4fgvTvz+lF73U9W4xNlm9RwAjGwE YJ9HraOSkO/w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,430,1596524400"; d="scan'208";a="356256540" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga002.fm.intel.com with SMTP; 29 Oct 2020 06:27:44 -0700 Received: by stinkbox (sSMTP sendmail emulation); Thu, 29 Oct 2020 15:27:43 +0200 Date: Thu, 29 Oct 2020 15:27:43 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Zou Wei Message-ID: <20201029132743.GZ6112@intel.com> References: <1603937925-53176-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1603937925-53176-1-git-send-email-zou_wei@huawei.com> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Subject: Re: [Intel-gfx] [PATCH -next] drm/i915: Remove unused variable ret X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: airlied@linux.ie, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" On Thu, Oct 29, 2020 at 10:18:45AM +0800, Zou Wei wrote: > This patch fixes below warnings reported by coccicheck > = > ./drivers/gpu/drm/i915/i915_debugfs.c:789:5-8: Unneeded variable: "ret". = Return "0" on line 1012 > = > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Thanks. Applied. > --- > drivers/gpu/drm/i915/i915_debugfs.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > = > diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i= 915_debugfs.c > index ea46916..200f6b8 100644 > --- a/drivers/gpu/drm/i915/i915_debugfs.c > +++ b/drivers/gpu/drm/i915/i915_debugfs.c > @@ -786,7 +786,6 @@ static int i915_frequency_info(struct seq_file *m, vo= id *unused) > struct intel_uncore *uncore =3D &dev_priv->uncore; > struct intel_rps *rps =3D &dev_priv->gt.rps; > intel_wakeref_t wakeref; > - int ret =3D 0; > = > wakeref =3D intel_runtime_pm_get(&dev_priv->runtime_pm); > = > @@ -1009,7 +1008,7 @@ static int i915_frequency_info(struct seq_file *m, = void *unused) > seq_printf(m, "Max pixel clock frequency: %d kHz\n", dev_priv->max_dotc= lk_freq); > = > intel_runtime_pm_put(&dev_priv->runtime_pm, wakeref); > - return ret; > + return 0; > } > = > static int i915_ring_freq_table(struct seq_file *m, void *unused) > -- = > 2.6.2 > = > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- = Ville Syrj=E4l=E4 Intel _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/intel-gfx