From patchwork Mon Feb 26 13:18:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= X-Patchwork-Id: 10242301 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 0FC39602DC for ; Mon, 26 Feb 2018 13:22:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F3BBE2A000 for ; Mon, 26 Feb 2018 13:22:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E86BD2A007; Mon, 26 Feb 2018 13:22:10 +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=unavailable 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 927A52A000 for ; Mon, 26 Feb 2018 13:22:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753301AbeBZNVH (ORCPT ); Mon, 26 Feb 2018 08:21:07 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:54860 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753237AbeBZNTR (ORCPT ); Mon, 26 Feb 2018 08:19:17 -0500 Received: by mail-wm0-f68.google.com with SMTP id z81so17371730wmb.4 for ; Mon, 26 Feb 2018 05:19:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=3gejPp+WXVSYY3NaVajIRKKsT+EEkT5O0WNdxlFrD58=; b=oJGdkaLPuSKwm/qqPNRuQB1nHwSJ0H4pZTmXmtGRmKd3y4+uL/Y2H4DGmCPsdnzTzg RQARq9lW8ovJ/0LHPhr/cQo/phvtYZruMDd8PcZOYROlNl3RFq3reAB8+lyU5+XStxbp ACwU43Cj1slEiY2MZ7uEk4rOO7zSQRMPiVRRQWFuGcKMeSMa6sw/0qQmdRPt2QOZp64k quJtvvOWTk19fGIQekM4DMki8xIzt+b240V1/Grn+vNKhllRNqoKjZiajePt67AtYHpj chXmjt0j/yhfdHFTJKORLrJn8l9NZhSoU9HwLWJ401BmymYF0qqpe9mI7dX8IZGZX++e KK0w== 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:mime-version :content-transfer-encoding; bh=3gejPp+WXVSYY3NaVajIRKKsT+EEkT5O0WNdxlFrD58=; b=fPZJ8PuAYnKr789yLdbAR1D9wf8/Y2p4D1C/Hch51cSl+ekkeUqgejFhlnVrfqlUV6 gZVlQAmjPfUbpbvzo19U/L2O89JsViCib1y2Qmn188hdA/BWzkM+cXQG0ZYpux1GlN/x kmMHk68nOVIZEtKxJtAyeJJC0Bx2KtP11QJpj6urXNrwQKweWVjlJqRP9Qa+ejW0Uakk gw2cOtN0nL0RJSa9lJXf6onrQJSVc279y+vdg8eHyT67Q6CNUkZIC50TtjsjVyVsVn7l ZMnr5BwZgVj2Es97DflE+Q6CyckO1RbwxaEgfIN/lClPpwFupITkJAEIP/xMTqIqmXrq NaSA== X-Gm-Message-State: APf1xPAGflbpIAL+LcKyQNbBbxfBklcVvMZZM3Yq4K7dpvdsqZpNMLHf 1REfFs8du/6ND4IQ+LsIM+Q9LQ== X-Google-Smtp-Source: AH8x225BgDUtlG3pHQ1MKK26rK49ws6Q2kVZJI022oZCkvN9DrGfUPtWy7Cz7v70bGbt9ktR4/dugg== X-Received: by 10.80.186.25 with SMTP id g25mr14424475edc.28.1519651156118; Mon, 26 Feb 2018 05:19:16 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id q11sm7497514edj.64.2018.02.26.05.19.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Feb 2018 05:19:15 -0800 (PST) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH] lightnvm: pblk: remove unused variable Date: Mon, 26 Feb 2018 14:18:49 +0100 Message-Id: <1519651129-17897-1-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 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 Remove unused variable after a previous cleanup (a8112b631adb) Signed-off-by: Javier González --- drivers/lightnvm/pblk-core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/lightnvm/pblk-core.c b/drivers/lightnvm/pblk-core.c index ce6a7cfdba66..e6cb4317bb50 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -1071,7 +1071,6 @@ static int pblk_line_init_bb(struct pblk *pblk, struct pblk_line *line, struct nvm_geo *geo = &dev->geo; struct pblk_line_meta *lm = &pblk->lm; struct pblk_line_mgmt *l_mg = &pblk->l_mg; - int nr_bb = 0; u64 off; int bit = -1; int emeta_secs; @@ -1087,8 +1086,6 @@ static int pblk_line_init_bb(struct pblk *pblk, struct pblk_line *line, bitmap_or(line->map_bitmap, line->map_bitmap, l_mg->bb_aux, lm->sec_per_line); line->sec_in_line -= geo->c.clba; - if (bit >= lm->emeta_bb) - nr_bb++; } /* Mark smeta metadata sectors as bad sectors */