Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp262269pxx; Thu, 29 Oct 2020 01:52:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHpEFPt4JCMmV373rNJghJ1LFkUMdqeVIREJIOyt5rY6zz2NDSiADf7+Qji7rQ07vV8gfM X-Received: by 2002:a17:906:cb82:: with SMTP id mf2mr2885742ejb.435.1603961561621; Thu, 29 Oct 2020 01:52:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603961561; cv=none; d=google.com; s=arc-20160816; b=ZXwifYIWRd4SNZWHKRTa96XUUYtZNUHB8M7sP5DZbLL9fYkMoXJOE3+hgsWp1Pw0/G EW+W8eg1L2Ixa8eAv7ZUO22sIEAPMOPg58XUa6IuMrQpYvwqZIp02H3+zmG63eQId9xd iN6zYF8+412zJJneADOvAOVJ/qzUFYAZKTGnFjP3TCE6xJF+bjB3cEk/u8v+t27syorC Nklctg4+WyhAKVdSDAEhTRSHw2msbjfVhz9pSEDJqggf7A6dAgVnI7o2DFzBVjEN3jXo nShe4Gad2c+/2meXMbL8HeXSo4bppTFSaQGB0o9upsOlZD/aDU60eEguVd+iTog8/eb6 jdrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=X9lfbMDeezYc97iJHJ4HpdNOZLgrAAEIwLmQanz2RQo=; b=fygAdJiWH5U5bV6ES2C4asPFagOZBkTe0sCtAFANEw+SJlGc4wVpP/RWarZ3PRvbhx f8YFZh35ukXBqr5A2WoxHd6U0pjNuR7PmZsRBNgOBgu3MY3ov4ettAEhPxixrPrwo4A0 jMi7xQkfAJduLdTtABGHUtKTDCIKeHV0HLpGKEYYHlZWmGvi1RwYYdvmEcH9AWFdNekH bdlVTCjnY3JY3V02iFPHxELCir4Ffv79BwEw8Z4A/U0ASzVH4ey9k57psMGdy7fVO/7O MaWTttbQEN3sJvIYCrBkPKquGQ785liSl8FxqJ/pARlg5PsQLIM5bJ/aE9vb9jh5EIoN wERw== 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 m6si1306513ejc.527.2020.10.29.01.52.19; Thu, 29 Oct 2020 01:52:41 -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 S1729711AbgJ2CHj (ORCPT + 99 others); Wed, 28 Oct 2020 22:07:39 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:6986 "EHLO szxga06-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbgJ2CHF (ORCPT ); Wed, 28 Oct 2020 22:07:05 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4CM82X1zCHzhbTC; Thu, 29 Oct 2020 10:07:00 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Thu, 29 Oct 2020 10:06:46 +0800 From: Zou Wei To: , , , , CC: , , , Zou Wei Subject: [PATCH -next] drm/i915: Remove unused variable ret Date: Thu, 29 Oct 2020 10:18:45 +0800 Message-ID: <1603937925-53176-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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