Received: by 10.223.185.116 with SMTP id b49csp4057599wrg; Mon, 26 Feb 2018 10:21:53 -0800 (PST) X-Google-Smtp-Source: AH8x2247YlcPopr8Jo9wsV6reulXL4lcMW/YIHFmVgut7mfc4neJb5OtwW9xz0hckrTzG16ulkxi X-Received: by 2002:a17:902:529:: with SMTP id 38-v6mr11229523plf.327.1519669313255; Mon, 26 Feb 2018 10:21:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519669313; cv=none; d=google.com; s=arc-20160816; b=T9UdKUgqQ3sQQxmFunEhyhARHm2Ito4c5+qk5eFCVDcKRPu/EInWCmwh68q2kI5ewo Mn/Wm4SHiB0Z/famn8z4kQ4M2aMx1BA0VK01f5yMvkIm4LHN3pC/yClrfJLLzkTWfWY6 GPP7+C8Uq5/0n/bJUG95WP5NDliDCp5B9aFiHxdwnn/mmke3m5UkfJT+rInRFQj2i0D1 HHh2NLs9TjF1V/XL6B7RKMw9BoU6xphhWjDr94y/DCUyIAD3Ubz7iuMYzbloGCSlasIf ULOXUCFUEm4J2pDQ+vJ23Tum1M+yBHYl9c7Xuwwh8OXK8PJBAR3hVEFb/u0UE/hQEoo4 MhZQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=T6xfebA9tA42pMQ7pOUbCNpwL0TTIsWf5s9HYlTC/yg=; b=JizTad/4F+HK84n/+bnALoXxKAadWZjNgFj17IBHbhU/If7rCm/xY6CbDgoRzsyNvR wh77YM1y+1UYowjstbHZ98FMh1Wv+I4wyay1BTVL/WP7Y7A0NARvkymPZB6tbqWAL9zp rHVqqgOswQR3SCSbdYsS3aKQ4b+CmPEgxkYMvuLz45eGzpyZwPffgpCAImaAlS1KLDg6 nkoOn8WBLrOcQMcqfD2YxF0NmiPBJp68TwU18tE1XpCAiWjqumqwBuutqRvWRw4k9RR5 vJrEVI2MEryc4dOjEkIe1LMDRM3A8kvFvXuZMXYsmAWbcZxZHXMOYDEqByWxp6GUjB6M LvtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=tODxqwV3; 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 r64si7137193pfd.303.2018.02.26.10.21.34; Mon, 26 Feb 2018 10:21:53 -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=tODxqwV3; 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 S1751968AbeBZSUX (ORCPT + 99 others); Mon, 26 Feb 2018 13:20:23 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:46579 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751809AbeBZSUU (ORCPT ); Mon, 26 Feb 2018 13:20:20 -0500 Received: by mail-lf0-f67.google.com with SMTP id r80so23623564lfe.13 for ; Mon, 26 Feb 2018 10:20:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=T6xfebA9tA42pMQ7pOUbCNpwL0TTIsWf5s9HYlTC/yg=; b=tODxqwV3EtFMmKrw8/RWnsp9w25xkrF1yxHRTCBhFZt5Y0kNML/JMfXbfTTGQ8xpQr wqb+Ec3BULIGrNiyxrAlC9QjAGXpt6edYwN+9xCgeHJvCQHq2wFDsT7TUV6whG0ZMG75 GnqwPsUyRvgClfxs+N/6NApUIEnP48vNr/J4uDMpftk+OA3+vrjOJdG52/JCM12VKOFW CFYVXRxvfa3JWuSvwDETZ+xFX2ySTTLfHcfaE1Oy6Lv4qBDqq1kAvTbZUCvJqdP9g/FT y60PK+5E3v1GW1nWW6nshnc8t21TsrhCHtEOCLQpiFql6HjMqQNfIuZL7kwdDOz5uqip v2KA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=T6xfebA9tA42pMQ7pOUbCNpwL0TTIsWf5s9HYlTC/yg=; b=SiE0ccmazviDHeoHOEiHgKhnvT+Gd36VAe5GlEWReANbzIN0mqS7taGvOI6jca2yg4 I5Ftjq64T5XYm4IBHlVfh5XXmAVgdQmfUe3YZTHBYZEHBWimiZqGHNUvU/9++c/zuMvP TliW4r4tPHcgputp6QO7GpWxYusbLYdY0Arp+p/8cZyq34BhUoPf8vTdz+aqspObU9YV kgDljk+t1qgcUVandvaBqmtDFBSd/VjCLTCEcCiYkOLCMn5k93MHfwUEpeAeOApajJLY 1TxlyzApvEtdvzbiSc2Dzyn1y8JZZ/LfXUQZJnjUAZ/g7URnrdsy1ctpUXrRpck4BYPr yfDA== X-Gm-Message-State: APf1xPAfvsyFS/2oaNvh6LVn1gubVr5iMO1+J1dbcqloca7KGBtSeIcS a2uI1TjFcwVZLkM+/uRyCIaNYw== X-Received: by 10.46.60.23 with SMTP id j23mr8043960lja.18.1519669218753; Mon, 26 Feb 2018 10:20:18 -0800 (PST) Received: from [192.168.0.10] (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.googlemail.com with ESMTPSA id z21sm881493ljz.83.2018.02.26.10.20.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 10:20:17 -0800 (PST) Subject: Re: [PATCH] lightnvm: pblk: remove unused variable To: =?UTF-8?Q?Javier_Gonz=c3=a1lez?= Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, =?UTF-8?Q?Javier_Gonz=c3=a1lez?= References: <1519651129-17897-1-git-send-email-javier@cnexlabs.com> From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: <423c58a6-afde-5ebe-6199-78ff2661d8ac@lightnvm.io> Date: Mon, 26 Feb 2018 19:20:17 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1519651129-17897-1-git-send-email-javier@cnexlabs.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/26/2018 02:18 PM, Javier González wrote: > 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 */ > Should Fixes be added?