Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1614623ybb; Thu, 2 Apr 2020 04:19:45 -0700 (PDT) X-Google-Smtp-Source: APiQypJOcSgdq+nKXt/gWZdwN5usMUnpcSV6heef2VMDDFDtdGm1DaJZksaye07xbu+w/LwcF+Pa X-Received: by 2002:a05:6830:1f56:: with SMTP id u22mr1976948oth.55.1585826385237; Thu, 02 Apr 2020 04:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585826385; cv=none; d=google.com; s=arc-20160816; b=RkJ2bYH+YK9w8+YJywTS5SbOCsrixy5Xh0jVvejkK/pYegJjhgFmC+bn9uyrvrFAW1 9xqPRqKNy6tvsffZJ8jM5dwcvQ2VGpw73zZ6F9o7eO1g7i/nS0oYIHXCHQRODdowLPwf gD02fRls+bUndaWjGiRtw9nSOt+e3rA9iSjEnfN7DBt+LICJ7ppGYgNqqYUFAIVI7ePq dMS7dWQgzNgsxXXwLTDd5qbJ0bBtYzNGCZL79wfxyY1aNJ4JdlDjTtH9xaDg/4lc/Yse znA4rxcElv1ZAqlNnbiCq2IGyqqBzn/9xz3wYH12z7WXxhowVqawb+q1ubDlWiKLaErG eqJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=HVjVlt/x7wVwP+oNgLWeC7NgPrRhJtle0DKz+ECWfDc=; b=bYWT5+bOAZHW7jnbRIaiqjLEMIHqgFaaRPW4qF3/JqOuT1caEjwRvcQO4L0g2zgj+6 /eqLccnOA1sjpb4Uk5qH8mHZDv0Jd8N2UfWODm0Zd2pOPqve7yOylhlO9ygH28Pzhht7 nHfwcxX1CUW/3myBgqh7My2hrp2GXNdL+XIgu5L/0jEsEpw+ePicNRCKH2wHizLoI2qN qZMg088Fqe6Ge7mQqdRqf33A42fX6Nv4AKdS2ItNwmpQA/BOubi6aYtFa0yLTzFBAi6L zUtf2eHPvLlAgoHwDpWbENQyQJz5S880fZzzBDQOwNgf6VEyAfJpyQQP81OXWBchRz4t e9wg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n82si2173317oib.123.2020.04.02.04.19.32; Thu, 02 Apr 2020 04:19:45 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388081AbgDBLTG (ORCPT + 99 others); Thu, 2 Apr 2020 07:19:06 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:38068 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728803AbgDBLTG (ORCPT ); Thu, 2 Apr 2020 07:19:06 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jJxsF-0004zU-Tt; Thu, 02 Apr 2020 11:19:04 +0000 From: Colin King To: Coly Li , Kent Overstreet , linux-bcache@vger.kernel.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bcache: remove redundant variables i and n Date: Thu, 2 Apr 2020 12:19:03 +0100 Message-Id: <20200402111903.514146-1-colin.king@canonical.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Variables i and n are being assigned but are never used. They are redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King --- drivers/md/bcache/btree.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/md/bcache/btree.c b/drivers/md/bcache/btree.c index 72856e5f23a3..114d0d73d909 100644 --- a/drivers/md/bcache/btree.c +++ b/drivers/md/bcache/btree.c @@ -1907,10 +1907,8 @@ static int bch_btree_check_thread(void *arg) struct btree_iter iter; struct bkey *k, *p; int cur_idx, prev_idx, skip_nr; - int i, n; k = p = NULL; - i = n = 0; cur_idx = prev_idx = 0; ret = 0; -- 2.25.1