Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753489AbdDKOfV (ORCPT ); Tue, 11 Apr 2017 10:35:21 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:38846 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751792AbdDKOfR (ORCPT ); Tue, 11 Apr 2017 10:35:17 -0400 Subject: Re: [PATCH 1/3] lightnvm: clean unused variable To: =?UTF-8?Q?Javier_Gonz=c3=a1lez?= References: <1491920338-2348-1-git-send-email-javier@cnexlabs.com> <1491920338-2348-2-git-send-email-javier@cnexlabs.com> Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?Q?Javier_Gonz=c3=a1lez?= From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Message-ID: Date: Tue, 11 Apr 2017 16:35:15 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <1491920338-2348-2-git-send-email-javier@cnexlabs.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 969 Lines: 31 On 04/11/2017 04:18 PM, Javier González wrote: > Clean unused variable on lightnvm core. > > Signed-off-by: Javier González > --- > drivers/lightnvm/core.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/lightnvm/core.c b/drivers/lightnvm/core.c > index eb9ab1a..258007a 100644 > --- a/drivers/lightnvm/core.c > +++ b/drivers/lightnvm/core.c > @@ -501,7 +501,6 @@ void nvm_part_to_tgt(struct nvm_dev *dev, sector_t *entries, > int *lun_roffs; > struct ppa_addr gaddr; > u64 pba = le64_to_cpu(entries[i]); > - int off; > u64 diff; > > if (!pba) > @@ -511,8 +510,6 @@ void nvm_part_to_tgt(struct nvm_dev *dev, sector_t *entries, > ch_rmap = &dev_rmap->chnls[gaddr.g.ch]; > lun_roffs = ch_rmap->lun_offs; > > - off = gaddr.g.ch * geo->luns_per_chnl + gaddr.g.lun; > - > diff = ((ch_rmap->ch_off * geo->luns_per_chnl) + > (lun_roffs[gaddr.g.lun])) * geo->sec_per_lun; > > Thanks. Applied for 4.12.