From patchwork Mon Mar 19 00:36:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Lyle X-Patchwork-Id: 10291487 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7089760291 for ; Mon, 19 Mar 2018 00:37:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6286E28D4B for ; Mon, 19 Mar 2018 00:37:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5762428F56; Mon, 19 Mar 2018 00:37:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0F81828D4B for ; Mon, 19 Mar 2018 00:37:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754685AbeCSAhL (ORCPT ); Sun, 18 Mar 2018 20:37:11 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:44108 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754845AbeCSAhB (ORCPT ); Sun, 18 Mar 2018 20:37:01 -0400 Received: by mail-pg0-f66.google.com with SMTP id l4so6251553pgp.11 for ; Sun, 18 Mar 2018 17:37:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyle-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DHqb5JuJLPwuQI2y7Uq+fJBxzHsfOKfkbZiq1a2RZGw=; b=oFjG8N0U/H/J5big14QoYXDHA5rhn10/XtHpIVKwt3VN4wRQdQTtUnrEFPIh23PTMM 30GFMgVys42H01EJ32QjYdumJgVvebNuyQKEYIRBsTSJevKKDw4ODMXRDIk35C33XaLo xHny8yDNHrv3AgTTmeI7jveFjfHUnbBWNDc5x7y2ezWv9V+gVFIKmYeRB6yj4oD1LXkz 1AM70eBYq0hskQjsOuwM22hsFXNMxIIz9LF+d7wF1Wd0xSC0TeAtZ0yMeLqvhoX8qmKT EBhdJ01AXOUxEGiIP4GXAqG9PkZggiD1+rUAU+I98+OGb2dy0iInK5R95sOMzhabkiNg amHA== 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:in-reply-to :references; bh=DHqb5JuJLPwuQI2y7Uq+fJBxzHsfOKfkbZiq1a2RZGw=; b=IhrUYILL6GJsy4mksDnzWSyDzs8+J/NMYbFSq9QRL9SkJKqWW0qBFbdwF4n+G3zLnh 2S6bgGsl/IsUaNJqRK9jnkIjdtZGPSplujJKl1x88RNVg0sc+6vViPrglVIHcFdiDjN0 /egRBQN3CLG+uWPExQggU25eOrhEM9urW0y1IET1fY5Vg57uzKj3UIkAyNu64EXc4dTI EBFb9mspoU8dGGdAUlPnE8xLO85VxjT2b3r3Q6YQN5hkxE5nnwC2Yn0Xu9Aqr4GyipY1 geAJy+QOtsd24RZEQ21OlRwWuodwcrhlrVn44m7/OrgKqHg7MQsCnlQxeNgwomLLOEsP axhQ== X-Gm-Message-State: AElRT7EIOUf5hkLqiVhm+5gDIwR7r0vPorTmEY7goa6KJwfpRyp3OMee D9+foPRSwF3zaJSR5//g6Ijnkw== X-Google-Smtp-Source: AG47ELsuI/fJELaBhmj34kBtPGqey2GthrEmMIE9gqA0L1Ps6RdiPq/6vuDVt61OOxpIUemxkiyx6Q== X-Received: by 10.98.228.3 with SMTP id r3mr8554054pfh.77.1521419820707; Sun, 18 Mar 2018 17:37:00 -0700 (PDT) Received: from midnight.lan (2600-6c52-6200-09b7-0000-0000-0000-0d66.dhcp6.chtrptr.net. [2600:6c52:6200:9b7::d66]) by smtp.gmail.com with ESMTPSA id a17sm27674857pfc.122.2018.03.18.17.36.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Mar 2018 17:37:00 -0700 (PDT) From: Michael Lyle To: linux-bcache@vger.kernel.org, linux-block@vger.kernel.org Cc: axboe@fb.com, Bart Van Assche Subject: [for-4.17 17/20] bcache: Remove an unused variable Date: Sun, 18 Mar 2018 17:36:30 -0700 Message-Id: <20180319003633.27225-18-mlyle@lyle.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180319003633.27225-1-mlyle@lyle.org> References: <20180319003633.27225-1-mlyle@lyle.org> Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bart Van Assche Signed-off-by: Bart Van Assche Reviewed-by: Michael Lyle --- drivers/md/bcache/extents.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/md/bcache/extents.c b/drivers/md/bcache/extents.c index f9d391711595..c334e6666461 100644 --- a/drivers/md/bcache/extents.c +++ b/drivers/md/bcache/extents.c @@ -534,7 +534,6 @@ static bool bch_extent_bad_expensive(struct btree *b, const struct bkey *k, static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k) { struct btree *b = container_of(bk, struct btree, keys); - struct bucket *g; unsigned i, stale; if (!KEY_PTRS(k) || @@ -549,7 +548,6 @@ static bool bch_extent_bad(struct btree_keys *bk, const struct bkey *k) return false; for (i = 0; i < KEY_PTRS(k); i++) { - g = PTR_BUCKET(b->c, k, i); stale = ptr_stale(b->c, k, i); btree_bug_on(stale > 96, b,