Received: by 10.223.185.116 with SMTP id b49csp3740862wrg; Mon, 26 Feb 2018 05:23:33 -0800 (PST) X-Google-Smtp-Source: AH8x224BINPmTpBPr89EVvDI31Tuj8INBdmnNXpkWRiSb9a1nB4cZJXiWVW5/ZjubGsNl3h+zNW7 X-Received: by 10.99.117.6 with SMTP id q6mr8379698pgc.146.1519651413112; Mon, 26 Feb 2018 05:23:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519651413; cv=none; d=google.com; s=arc-20160816; b=SSQYBRW8RQlR1rsqJAUkT5uPGPVbPTm8MqjkRuN6aTHoKESe0fxtGwOWPUh3oRsbgY PY+mXV+X0zcn3kppi25nSZzx5VszZNwxXBiu4isxPX7a268aS8HFfLoG6acG41ZpqPSn XmxjM/YJam0b82nOzV/6+0oZDdrdWjkPZfa3xMoHgabEU9OLds96xYg+z7oDDrVgm8Jm 8+xfqz/8OQVZPOyJnr0FPBig05IhCEK6ok+Jjz7UMIac4SEimNVnuod3I2kWtoZFJcDM ynVq1I1QoCC+MxHmejjWGAYrF+277Rv+CoNAMNpbQ6XdR9frAMUNPgYF3cWRT/PCgk8w czVA== 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:dkim-signature :arc-authentication-results; bh=3gejPp+WXVSYY3NaVajIRKKsT+EEkT5O0WNdxlFrD58=; b=zkucRhunay5e0hVu5HMy22ZkTd1n+nnScF13wd2Y9TGJImsSkrNVaYQu51NBIopyT3 cbh7frpqtsPZj/HH47ihWDQOR49F9df9FaC/YvvuVkUBx4pQ5S7nPSCDzOkB+aYFAVTy AvPywYAZWc8rp0zJZlzEvtoMUrkdnwVO/UvPU36cPfQShWfbZdcvOwJg/NABPfWDLodf qmF43nXZ3sfjQq4+Mk+gjjWGFolJY+Wnpv4aYTuTMXHApTyKjfsDHZMTzG7mrADrdMbM ts6w2qFeEBJuqkk9XmtdebFvS5MT0/R7FII+hSXR8d/0OPxpwJM4UwpdIUAMx3d9lj1Y HPxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=oJGdkaLP; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bj1-v6si6671340plb.825.2018.02.26.05.23.18; Mon, 26 Feb 2018 05:23:33 -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=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=oJGdkaLP; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753356AbeBZNVL (ORCPT + 99 others); Mon, 26 Feb 2018 08:21:11 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:53735 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753215AbeBZNTR (ORCPT ); Mon, 26 Feb 2018 08:19:17 -0500 Received: by mail-wm0-f67.google.com with SMTP id t74so17479789wme.3 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=RYa8gS02MIJM06ox4laMNb2hU6pdoisvM8wayunMsfIWb+Yll0X0zSl0PHOb/75flu AokNjskMHLO2JIzisrYYFYwq7GTTy/vRXZ8tOXMF2FjRd0CUbSI/+nSghgNoS+r0JBHM pDk8b4A8paWc11XF2mSHa6OOdXr0Wm/db+w4GSO84V11mxJhth3H4wnbm08FuUxwEPTo ZbQpjh3CJR1W2VvYijaaaagf88tyradxv9GJC9PFCUHfgoFrPtY3QXRnvMbiTInkdhrn dq19dphsb9jUHnkMhpmNs3sJCETcjEsWyrBy329ozNwg4ldcosa9sQK22sKN/62Wlqfe ut0g== X-Gm-Message-State: APf1xPAKPYanP+CoQrJtqQf3WHkuv0ihoTe3vxAQ0pmE641Lh5NCnO7Y y4w8ho9tzwPXNj2WWBjKis0tEA== 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 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 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 */ -- 2.7.4