Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp15686386ybl; Tue, 31 Dec 2019 13:01:07 -0800 (PST) X-Google-Smtp-Source: APXvYqzAO3GH2GSDKCAwg/p2R3nx6Iwii6n8OfGDtOHvp/aaSVGNRnKd4uCB9FJZDfS9BOVo4czy X-Received: by 2002:a05:6402:1296:: with SMTP id w22mr79021499edv.65.1577826067460; Tue, 31 Dec 2019 13:01:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577826067; cv=none; d=google.com; s=arc-20160816; b=S9rS9yloAintMt00/7XY5Y0IVhJNF6FFdJoq/3l0zSv5F/7QJtLAR2Vwy3jpHehNYn 7uUWK4B0J33eWCMXghZfnjqhmAqiaE+vpQNTv9mYFgy+H8AG44O7CroP/bJO8UqcjeI0 atE11/LhI+OeAgy4niwx+TGwdXta8vvkv13fVFWeAC9RPfMv7ZfaQ7jFlSwTCjGTiGcd lUbCXPWrHxy4YIVw7HQOgnhVVGa3ZcwGV49R9VUkrf+eQuadC2MuJ2/wBwWRP5cTaC4w DbxGb5/zQkbX5w5WwLVaFBMNfj7a4T2DmwAccCjIyGQg/XpSfMalLFbN6grVKSPsBkQN YIyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:to:from :dkim-signature; bh=Z+jvCslck9jvZyqIDORlvWYlx3m5W/qD1J93hFFm1XI=; b=Njq4vvuI5caYxsS7MrEfkA/j5iGTV1Dx0z9pcBOCaY/pg5h7UJuvCeEzXCoveUXU4d V9B4blm/7Alnoj+WXaOE/Gxcjc/PqvGAAD3ilH8eJbv1T7H8oEk6/mYNpc3KIxBB92bW OBjtDzl+uIX5cAJHFFby1Xf8YGJHrmP0EiUxRtC6of8A8I1Q3q8F2vxzU+YV/SSlN+fj ukDf6mHCWakIoxO/9kp1n2qmN0W0TRePsREmXdOuNc9bA2Qt2cKv5NR9R4boAxp3VSqI GzGlc6kQEcSdLRj2ADLxiSO9QM+/YBy7RjS5H12QIhNozO5K9NgSZwpcllp2w+2i5Udh 6gvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vTVkJzzZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id gh3si28831753ejb.180.2019.12.31.13.00.43; Tue, 31 Dec 2019 13:01:07 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vTVkJzzZ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727113AbfLaU4N (ORCPT + 99 others); Tue, 31 Dec 2019 15:56:13 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:34189 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726534AbfLaU4M (ORCPT ); Tue, 31 Dec 2019 15:56:12 -0500 Received: by mail-ed1-f66.google.com with SMTP id l8so36012513edw.1 for ; Tue, 31 Dec 2019 12:56:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=Z+jvCslck9jvZyqIDORlvWYlx3m5W/qD1J93hFFm1XI=; b=vTVkJzzZyTHRnHwXoQ+eaVI3+LJyxV952KBN+N+Q/ZpyUXtN/8gNFsObt12NPIwVo4 uZRpH8xALxFjZQKvaSGKY3I2tfoT73sv+Lqes0GyJjlJkfh5ZH3ckmHEfnJyWvDTFuUa f+BgxgScMy8o1UaqUz6y943UUrImEa7YrILZITWYD7glhutNyPO4MSNw2qYkmnZlqhhh tao2d9IOAcF238DT0AegtIKHWs2+moRepni8WZS2g/1M+PLIx+LkkZXkKMzA64o7atbb uGXqQOOB4R9PftsHT44ao8N/+mmH25ApN4MS4UXykKwVqW2dpLUeouVrmUCg9gs9qRWD sJ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=Z+jvCslck9jvZyqIDORlvWYlx3m5W/qD1J93hFFm1XI=; b=LkyMHOpKeJT4yT5JszNh7arSOg2dBaSKZ0PJLMQcWuYAY5TzYAcc1GcYUt2Xz4sgEn 2BSpkWE2RRmqDlNHbTgRZnj5NqyBkxHiAUGaI+1o7tD7DIlftaqVp4vmcvSZzw/jLxO8 BrpAJ7jSKsy7ozzb7bnM2//pU1k6iWL831RklqwFFcI3Rl0KVfkn/5hoj91G1wa/vO1c r0IRBMCVwWXmixPN6WqKyGlcAzAF3DiyMnEzxzJv3bbrhKBlx4GntgH2k/89henunF5g 5kg4REwV/Blv4GOqFulC6efNLE0flyAH/0m4G0nri6atACL2iRPHcI1Xv5Tz98VOvdea OLOg== X-Gm-Message-State: APjAAAWg66XuBxzsyU0+lJLF23ciTo3Hirp/fEu7vuKV1khYrzs3JJhf GTIe4yug5Avc+h+JkcnoSxQ= X-Received: by 2002:a05:6402:609:: with SMTP id n9mr79544990edv.305.1577825771379; Tue, 31 Dec 2019 12:56:11 -0800 (PST) Received: from localhost.localdomain ([197.254.95.38]) by smtp.googlemail.com with ESMTPSA id r9sm6341288ejx.31.2019.12.31.12.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 Dec 2019 12:56:10 -0800 (PST) From: Wambui Karuga To: bskeggs@redhat.com, airlied@linux.ie, daniel@ffwll.ch, dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH] drm/nouveau: remove set but unused variable. Date: Tue, 31 Dec 2019 23:56:07 +0300 Message-Id: <20191231205607.1005-1-wambui.karugax@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The local variable `pclks` is defined and set but not used and can therefore be removed. Issue found by coccinelle. Signed-off-by: Wambui Karuga --- drivers/gpu/drm/nouveau/dispnv04/arb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/arb.c b/drivers/gpu/drm/nouveau/dispnv04/arb.c index 362495535e69..f607a04d262d 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/arb.c +++ b/drivers/gpu/drm/nouveau/dispnv04/arb.c @@ -54,7 +54,7 @@ static void nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb) { int pagemiss, cas, width, bpp; - int nvclks, mclks, pclks, crtpagemiss; + int nvclks, mclks, crtpagemiss; int found, mclk_extra, mclk_loop, cbs, m1, p1; int mclk_freq, pclk_freq, nvclk_freq; int us_m, us_n, us_p, crtc_drain_rate; @@ -69,7 +69,6 @@ nv04_calc_arb(struct nv_fifo_info *fifo, struct nv_sim_state *arb) bpp = arb->bpp; cbs = 128; - pclks = 2; nvclks = 10; mclks = 13 + cas; mclk_extra = 3; -- 2.17.1