Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp447739pxx; Thu, 29 Oct 2020 06:29:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrMfLRMy3sbTqw2xT3L3owAUNQW1U/5VhxcpZwHKD3PU++Nt0QNdwmGPdJSpszvTUJdofZ X-Received: by 2002:a17:906:34c3:: with SMTP id h3mr4088420ejb.132.1603978183842; Thu, 29 Oct 2020 06:29:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603978183; cv=none; d=google.com; s=arc-20160816; b=wq4hDF/M0JnH/zDCRZPY46eTTNTuGBnYoaSpLRbuEIg2X7wDO59oZYn3CF+luY48ow 5XFfTN+zwGdyucdjI2o2RyPNdVrZe/C61bBgbz6d48WeaRkz8SuhlPJqQy4k5euKGL5/ dKrEDG7Vfd/BJVjg7lYo/JYY+FWBiiaPHODuMypqH1e9qrbJcV1Id8/lLdN2aILtUYAR 4zo8oGk/EIFnoPQYT6qMv6N0h4vWlo/bEUeZo9GYyyEeguRifRbJKI+w0orfX+FtWBxX vyAnXTg/JyETRCGCv4+rqWkhIMHJy4cDVNxBNaVSr8tvY6KG2scMf2+mp7KzCncnaLyF ECPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=BXcrHjpGVvj0/DnBgHSqswnYDotrEy3HY4m+Pv4vBWA=; b=v0IIcoxPlCzClwSHQgw/uKyfpShBiHqufmhGQaZ9SZVz/2jl4TDfTbYBYPuUrRICJg t0Jm9SuoAJ2m/mztrRoEP0qQPoDaE+gC9FYE18MTeKdp/or6tAvfaGn/bTzHhGdpxih6 QhOCAqUY3s3hRtddiNhj9ll10GIwwNPpPOadNcB+1d/6fwe92t6bLJHXqDpR5aySF/pm J9jMWpB6Mf5FS1+2EXRGj7PBDIbJ5sh8NhYA1n39TrIwTI4Ht86knZl8JlTKT2BTeb3L /mv/jVyQNURiTc/kIIA692bLHYPqFA1ZJdz4s4oSWdMFJDqlZWsBVmA36temccevuu/S pceg== 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2279152ejm.502.2020.10.29.06.29.20; Thu, 29 Oct 2020 06:29:43 -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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726935AbgJ2N1t (ORCPT + 99 others); Thu, 29 Oct 2020 09:27:49 -0400 Received: from mga06.intel.com ([134.134.136.31]:58033 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725554AbgJ2N1t (ORCPT ); Thu, 29 Oct 2020 09:27:49 -0400 IronPort-SDR: jf4xuRCNQj/vyN1QFow5SPp0vZZcWqIKA7WkyO1bPwOUINlNrSSpXpd4rIJ3jFoifIdanRx7Pq fH3GhKTJOQWg== X-IronPort-AV: E=McAfee;i="6000,8403,9788"; a="230068812" X-IronPort-AV: E=Sophos;i="5.77,430,1596524400"; d="scan'208";a="230068812" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.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 Cc: jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, airlied@linux.ie, daniel@ffwll.ch, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH -next] drm/i915: Remove unused variable ret Message-ID: <20201029132743.GZ6112@intel.com> References: <1603937925-53176-1-git-send-email-zou_wei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit 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) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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/i915_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, void *unused) > struct intel_uncore *uncore = &dev_priv->uncore; > struct intel_rps *rps = &dev_priv->gt.rps; > intel_wakeref_t wakeref; > - int ret = 0; > > wakeref = 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_dotclk_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?l? Intel