From patchwork Wed Feb 28 15:57:24 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: 10248725 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 1DAD760211 for ; Wed, 28 Feb 2018 16:56:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0FF7F28D41 for ; Wed, 28 Feb 2018 16:56:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0439828DDB; Wed, 28 Feb 2018 16:56:00 +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 C2EF928D41 for ; Wed, 28 Feb 2018 16:55:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932082AbeB1Qzo (ORCPT ); Wed, 28 Feb 2018 11:55:44 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36216 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934008AbeB1P5e (ORCPT ); Wed, 28 Feb 2018 10:57:34 -0500 Received: by mail-wm0-f67.google.com with SMTP id 188so5993690wme.1 for ; Wed, 28 Feb 2018 07:57:34 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=TKpWrU5ZsgERp4xRV5O+aDgTylVnqza1EeExUc2kF/0=; b=pHh9r9iMh4x19xtxhqwypXd1PWu/QFfPJbhq+aLbK2Uvbyd6tYivsSWlE3WX5D5tvD rhU0LHuZSZL+HTZiWuuJ0wrEjS7wiDfOBH4nESW/1G61ZviX1Ecby2Qp8pW/FX9NxpCg p5pZYRylYj/v7+Wgwu5D7r7yzJVu+GUXnaxBUM4wwnsBJS3fhqamiu8hHsXr35tNfOen FzAlrCeQf43iRrMRCE7WPrvanEvGcPEsIYa/eGGy9c31vUekBzPPL6QgQ/c6bzZ5TFbl 9nkIiGYDin4CCZAc0qpdlFEDJwupOks1JB23nsMCXjaqHlqKPLZi6DXkfULiGj9N4q3j a01g== 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:mime-version:content-transfer-encoding; bh=TKpWrU5ZsgERp4xRV5O+aDgTylVnqza1EeExUc2kF/0=; b=SU6dIB6+f07UylobBiceZlcjxYe6cGpFXF/qMhrdAv/KaZBC2pD7trK6nmAcTBRXC7 c6zTeSi6QMZTq1aURmMg9C8gWKUo67Z3M7C8bA108QhD/B4q/jjqJpaFMAE3Cs3bc4Yl +WDuNEqL3TYDrBlfwtYbpa1BD3gQ0SkVlkMNQM/gggwjvpZYoat8sPpE2WcjnnAKThue hZo5Fq0KrFe0WUow7b1aGbp2oapBp1mHXoT37zfUANN56WndNwLAFXeUOwRFbCuOxWmj fGz2JfKmOIo3azJIkE62xeS97OiZa0BLB2k5EANSjj8zju3A7KFYaNnuBscbB8Z6bikS 4d6g== X-Gm-Message-State: APf1xPBDq50g5KGkzKalqveAOAAVDkvmo3731jFGwVf0F3EiIBGhoKvi sYo+jMLGi5eQafoYrNSjubPt+vwY X-Google-Smtp-Source: AH8x2254+5MzjcmxafNGUoKp2q7s2bp/9xDWQd+GM5g+KVlU17dw9C2EStQJskeH6Xou3/mgTLxGvg== X-Received: by 10.80.182.245 with SMTP id f50mr23965652ede.157.1519833453620; Wed, 28 Feb 2018 07:57:33 -0800 (PST) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id e29sm2252643edj.66.2018.02.28.07.57.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Feb 2018 07:57:33 -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, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH] lightnvm: pblk: remove unused variable Date: Wed, 28 Feb 2018 16:57:24 +0100 Message-Id: <1519833444-28160-2-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519833444-28160-1-git-send-email-javier@cnexlabs.com> References: <1519833444-28160-1-git-send-email-javier@cnexlabs.com> 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 cd663855ee88..b85cdedb5f48 100644 --- a/drivers/lightnvm/pblk-core.c +++ b/drivers/lightnvm/pblk-core.c @@ -1082,7 +1082,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; @@ -1098,8 +1097,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->clba; - if (bit >= lm->emeta_bb) - nr_bb++; } /* Mark smeta metadata sectors as bad sectors */