Received: by 10.223.185.116 with SMTP id b49csp1583230wrg; Wed, 21 Feb 2018 22:54:23 -0800 (PST) X-Google-Smtp-Source: AH8x225NsiRR1i/iBarHuRo7+NZ4KeygMsG6HD3MwVeZrN9ThiCd/faIdAuhZwncsAHYWMFqsx65 X-Received: by 2002:a17:902:5322:: with SMTP id b31-v6mr5490375pli.61.1519282463462; Wed, 21 Feb 2018 22:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519282463; cv=none; d=google.com; s=arc-20160816; b=YtLCd1Aig+0LRjoZekGfmfsK7b5xQ/282Unn94k2UhfuM3xoMq+MKhv642uSOgOcwd ns7pxhH5toIusKn+t4tfUZLZkn4nSUx9WfEvkPJv1LWxzrhYpSARozNQmjZ7dU9IDcLh qzp9UQCiOccsUUSfLQDDyaJJM5ZFXcRtC/aI/MFbeaeUNt0/DO1E/1FF3u1iSqzreEXB QfwSr6ByoJh6xXWG3/YeIgvMPe7g/77Qevd0z12k0IH6JjpnsuhJhBDCHwDywdoPvrMY NxOF5/6TDdbMZtfIkQuMTnj5azaJlSmwTHP6/E3ZOzmCQzr6xiW9msZ1OFrPLo7ilqCl nn+A== 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:cc:to:from :dkim-signature:arc-authentication-results; bh=oPxKfRynsrrANLoQiVsruHZ2VqjN8wUTitrHqGu5kcM=; b=x1wAFayD3c4wPdpv8DtchnSiJNg3l3Enb69DKIDeCV1A/+2g7JtXntpK5qv+i2IZw/ CTJXjlGmV4mnlJx913Zc6YekeuCRsEQu3KlTLlan1WcfWYn1rs86Ggbr8TcTdoGwifVX m/rdLtMKn4KpoVLsz0H8+MNPWrMD6pDBwR+01p50KWjcqpJwYFM/HpYuKBtoiFFoXtHw JPUvLpkeMkIvNJDYjABiR+HhTeBXA/rjlrmSJxbJuxlHoafu+DY6L0dP6CVLaDT7K+IU 0EgcfndBiO1VxevApMlMr3VaU4f5cCCYr82ynZwxzsK0Wz9RJWiE0IsFrjtnSawuxT4d MXiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CxCiQRwm; 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 a69-v6si709827pli.251.2018.02.21.22.53.57; Wed, 21 Feb 2018 22:54:23 -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=CxCiQRwm; 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 S1752558AbeBVGwx (ORCPT + 99 others); Thu, 22 Feb 2018 01:52:53 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:40997 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752462AbeBVGww (ORCPT ); Thu, 22 Feb 2018 01:52:52 -0500 Received: by mail-pf0-f195.google.com with SMTP id a17so1736727pff.8 for ; Wed, 21 Feb 2018 22:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=oPxKfRynsrrANLoQiVsruHZ2VqjN8wUTitrHqGu5kcM=; b=CxCiQRwmI/6dx31STICgyFzDl8TWGHGJV2rHbTHHHm5CCQK7bPrkOqW3vkgOtB4A3v /ZItEoU0MKI09B4rHF4wlRVwhsUWwwNGLlyomzNPDjTz/8mG83wpdZYHlCJIOl736hP7 oyfbI30csCz9u0qejfXzktelqlJqITqI8xk57jpmwkBRRtKpVDSz9c1+Yo/4RvItEJZP 8M2KuTe2s8pda1dlkPKzHAJeW5jBLxAngidCJeyBK3qqHkddmE/TGi9DqBM5URdDHoNY C1EDRmMN/LQ1imfNt9+O2AxteN4EbHPJ9wxzvYXyhJhMeQ/ub/BUF7HE1zktcOFVjMLB +DKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=oPxKfRynsrrANLoQiVsruHZ2VqjN8wUTitrHqGu5kcM=; b=KRkxhIXVR+mv9bj9b5gQUztuICKwq5kddo4teYSRKju1D/zqm30+Up4SiYFxPkxXx5 Qr+yE1ElH87a3/UwhGrNfYhkTzhq4BLzbRIEPtcrU7EX0VFbQiGyML2OZDPyXN5OVqhO ybW2tkLzWLe6DiWv3meJFDhSHY7LGYmf0dkk8PkjJMie9jdryMrK4ZZ36Cq/FiCOdZRP KAJj6GqSQBgqCc4kWLbwlQmoxgWVVNEnluPgHNW0It9B/Oen+8J2JZE0KLHyTGSyQFiJ 3+3FE8r3gzkAiuqDgjUOl5whzhLnaCwgtC0jXcOYpXk7iVpvxlvbUaW6B9vcYAvY7B38 Rtrg== X-Gm-Message-State: APf1xPAXK2kJisxZHxSN2tH3hmtfUrZqDk43orMDI5ZKUaBF3Y8riKkb iMD/qQgf9NsoER1L0oiDoiPNXzJh X-Received: by 10.101.81.204 with SMTP id i12mr4832967pgq.206.1519282371641; Wed, 21 Feb 2018 22:52:51 -0800 (PST) Received: from localhost.localdomain ([118.193.167.117]) by smtp.gmail.com with ESMTPSA id d74sm76934197pfb.54.2018.02.21.22.52.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Feb 2018 22:52:51 -0800 (PST) From: zhouzhouyi@gmail.com To: paulmck@linux.vnet.ibm.com, josh@joshtriplett.org, rostedt@goodmis.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com, linux-kernel@vger.kernel.org Cc: Zhouyi Zhou Subject: [PATCH] srcu: remove never used variable Date: Thu, 22 Feb 2018 06:52:37 +0000 Message-Id: <1519282357-17983-1-git-send-email-zhouzhouyi@gmail.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhouyi Zhou In function srcu_gp_end, the variable idxnext is never used after assign, remove it and its assign statement. Signed-off-by: Zhouyi Zhou --- kernel/rcu/srcutree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/rcu/srcutree.c b/kernel/rcu/srcutree.c index d5cea81..1241715 100644 --- a/kernel/rcu/srcutree.c +++ b/kernel/rcu/srcutree.c @@ -531,7 +531,6 @@ static void srcu_gp_end(struct srcu_struct *sp) unsigned long flags; unsigned long gpseq; int idx; - int idxnext; unsigned long mask; struct srcu_data *sdp; struct srcu_node *snp; @@ -555,7 +554,6 @@ static void srcu_gp_end(struct srcu_struct *sp) /* Initiate callback invocation as needed. */ idx = rcu_seq_ctr(gpseq) % ARRAY_SIZE(snp->srcu_have_cbs); - idxnext = (idx + 1) % ARRAY_SIZE(snp->srcu_have_cbs); rcu_for_each_node_breadth_first(sp, snp) { spin_lock_irq_rcu_node(snp); cbs = false; -- 2.1.4