Message ID | 20170415185553.16098-14-matias@cnexlabs.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> 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 CCD6F60138 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 15 Apr 2017 18:57:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF98125223 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 15 Apr 2017 18:57:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B440027F8C; Sat, 15 Apr 2017 18:57:20 +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=ham 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 3A2E325223 for <patchwork-linux-block@patchwork.kernel.org>; Sat, 15 Apr 2017 18:57:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754723AbdDOS5T (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Sat, 15 Apr 2017 14:57:19 -0400 Received: from mail-dm3nam03on0053.outbound.protection.outlook.com ([104.47.41.53]:42825 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755899AbdDOS5A (ORCPT <rfc822;linux-block@vger.kernel.org>); Sat, 15 Apr 2017 14:57:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cnexlabs.onmicrosoft.com; s=selector1-cnexlabs-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eNqPvrUFYYUEj7mKjBgP8tXLfStEOUlu8ffLIXeTr+k=; b=hkLrtJSM1Kf8dDG4ztlM4t0HIWKGkNiXw28zguKDlpae/73HDCBLSl47Qm0oF3HwRAHU9meL9AV7hqxTr9XOF5E84QnnHIvli+DjMZqyo8SGNBdXUYCXmwVPK4EaXJduGw36i9l5PJ3SyqupgbCVpVqCR9pgD5hrs6B90gOZOCs= Authentication-Results: fb.com; dkim=none (message not signed) header.d=none; fb.com; dmarc=none action=none header.from=cnexlabs.com; Received: from skyninja.cnexlabs.com (193.106.164.211) by CY4PR06MB2774.namprd06.prod.outlook.com (10.175.117.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Sat, 15 Apr 2017 18:56:31 +0000 From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= <matias@cnexlabs.com> To: <axboe@fb.com> CC: <linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= <jg@lightnvm.io>, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= <javier@cnexlabs.com>, =?UTF-8?q?Matias=20Bj=C3=B8rling?= <matias@cnexlabs.com> Subject: [GIT PULL 13/19] lightnvm: clean unused variable Date: Sat, 15 Apr 2017 20:55:47 +0200 Message-ID: <20170415185553.16098-14-matias@cnexlabs.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170415185553.16098-1-matias@cnexlabs.com> References: <20170415185553.16098-1-matias@cnexlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [193.106.164.211] X-ClientProxiedBy: AM5PR0701CA0069.eurprd07.prod.outlook.com (10.169.145.159) To CY4PR06MB2774.namprd06.prod.outlook.com (10.175.117.142) X-MS-Office365-Filtering-Correlation-Id: d4f7a457-9dcc-4b40-633c-08d484312205 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:CY4PR06MB2774; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 3:Z3rnt6rKiHWutCWevvtXJFOK8d2JWTC6TEjbZm7kNtWaD8QWR19r71FT9tmwddHJcVa4Q3Xk562jTliH8hdDDoqXl575ae8ZvZxm2bV+n2IiBmu6pOyszfFS9X7O3mqF85XyuLmrFiQ0lQVp4AU1dldfKSHmXBCDTaOUQvUYnYSJkgR/C1j75ilisUY9X3PyUCoF6Y0Eqm2aMMUmoXHzdr4hY8JQL4YZGjDPnt9haH6fKo6l53oaDBN+a42miigRRYvsYJbZHLZkM2B3QbvPjhRvKtpMK23LSPmFXq1lM1sdxHLP3vrvw6kFSp1LSLVuxHNhocN6N8Pht7l4oXGQzw==; 25:tees40LYQMPJIbjRuRK05G8eHhenQrVJgz8yKBXb2Db3u1mSLD303HT3uUuJvMQCOCPDbhwruS69CDtI97USuS72MjiBgaKb92xKY+CiyWos+voHJ+M7HKJVaZWhQyUw1DSANbjV13RsqtaV+ooISY5wcat5Z5ifjnxvOXKfByrjXXTKhiJQTdlF5LtKmY8bGenh0P1qntFCpZMhyzA4tM4gk9JO6MVEf8HejFdkzKC5wlWd72ITcYja758zL3JzcaaelUfsoDsAiFYtSSVeACdtKOct5Z0iIS6rSVRGxu2Id+M2zKx7eH2R2tFy4ZHyaUpK+9eyPvJN4qfuldGjlaxUWUOgsPSv1Z3O0fvr/TvpvEv7TGjnGytSPcsuvD/1aIFQvbny42neb40aHanWP6dSHQGO+hdA9vyN9Bnr+RX8ozJk53N1KlDr4XXZJz1NgdDTYMZHT7JhaswFiUpk3A== X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 31:SYYqTO7DPJdV07PtcfM/aEUR1D40FPy0YsP6wam2qzlk/Xyp6LQvUVtP4rWxV9uD7tbgMk3SZkwkCORx9BySrVy2mlkvyDkcLDGx/hiKP/oF5JipaO3OxU1rfmq8E2bnU7tNxZdt8aJTBgDi8AztMRclekbnlYnO1WbTEM+C43UUFuFLkMwsmyDt7vvOminPfVaogq8LrV2ltKKdrVe1VLWGHfIk5iDq3KJiI46xHbg=; 20:dt11n8xCKmmLn+8Rp/LDBwLqIn6Aij83aK4Yzw2WqKXtQov/KmxazXE8MhDJxXsGSzgHl9sK3saz/+ZmY3MldP+pbitCZfa9gDOhu8fz0FWFAyR2U4M3P4xnSyJsn76/oF820ZGciNR8m6Tt2FTZmsUHufwozTHxGWyMD36ie28= X-Microsoft-Antispam-PRVS: <CY4PR06MB2774F9E2A8C79DE5DF936111BA040@CY4PR06MB2774.namprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(93006095)(93001095)(3002001)(10201501046)(6041248)(20161123564025)(20161123562025)(20161123560025)(201703131423075)(201703061421075)(20161123555025)(6072148); SRVR:CY4PR06MB2774; BCL:0; PCL:0; RULEID:; SRVR:CY4PR06MB2774; X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 4:5pP+9ij7HJAYcNtCDfP6uK8IeBVCWMJt64aVbaTUKcIFgJaMXfDJGcyU7wtIsKboUBGJLUyiSe3mZM1udC5v2t8R/IEgwxJoPNBIXP0xju0nD0XJ/a6ZeoBO1SG++DfI6y2vpfwhsQkqix9Y0Lk6uPlILE7SL1IjO1oBzfIBRyOQu8Yrkp3KDGikYEn+PLEgxW6JKmU717q3O2rCKVsT0Y7KTk4nJv6/vwANmbE8q82Q538YJblSQVw4fr4+/CRIBtp+HGfdULz+jtetMRLP2F/RgKmB5dZausPIZKLHbxlEQ5Wmt+T74yiQfXjrFNbnhlNGQ9GcaTNM6jR3d6P6ngch7dlXllRxdgSxPSbPM8C3vakdG3B5TQm2NaSkq8hqewGPHXEdENArD6xAZbGaIYiOFhE3GMtkErV0SV7lU/Jm2iz+edDM4470xkkLBJh6xeIXmKglQc6YqHX0V2WXsWKe64IzJEyJdfsbgjdHZbTk4/x/ORieW7Qs2nz3dhGc0WFpwbOFbjLn2cSWtTseLFRAUI9DWVybbgn1VDXQhTSU8LAcafFzHWocR/446SQtsUXG80nOIOAgHUmNKBUAgPRk3uZgFapOHcbXQyFYCzE3icYfibRpPSmzFoot2QUklYtbREMlxVrONSKzVJBqy+LbyORSjH9htdwLxKqLbLkmwMy0BhcKHSuARlKEzNvN X-Forefront-PRVS: 02788FF38E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39450400003)(86362001)(305945005)(1076002)(6916009)(6666003)(25786009)(2950100002)(6486002)(2906002)(3846002)(6116002)(2870700001)(54906002)(189998001)(53936002)(53416004)(107886003)(110136004)(5660300001)(38730400002)(50986999)(76176999)(2351001)(4326008)(66066001)(5820100001)(23676002)(81166006)(47776003)(42186005)(36756003)(33646002)(50226002)(8676002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR06MB2774; H:skyninja.cnexlabs.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTRQUjA2TUIyNzc0OzIzOkNIT2ZsT0pPY3R2SWR5R0wwRGxXZ1BtU1My?= =?utf-8?B?alVqYUhubUdKbko4WmdETmZnNEtISWlpL2o4dWJOUzdCa2M3VmpKem5vUUNU?= =?utf-8?B?OWJFaTRJaEVraTNWQmN4ckt6NjBIRnNuQWM2bzBaU0syaXRGNjhVYzVTSTNw?= =?utf-8?B?MEVoUTNrN0pXblJIL2hOdDhtRE8rVXE2Skk4aWc3bEdocGlKZnVMTE5rbHVW?= =?utf-8?B?bVU0T2Zlb29Bb0ZWVG82YVA0U1haaUI5eW9xRzBvR01rY0I4d1FjRmR2QVhM?= =?utf-8?B?by82K3RnQnczVGVXV0NYMGFZNG5kd2RCVjdGcjkzTjFQRVdWL2FMUVBOK3I3?= =?utf-8?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-8?B?MStSR2VZREhVb25zOWwvTkhFTWNXTmxGa2ljeElHOFNEbm83cnREdE9KTVhJ?= =?utf-8?Q?V9fWGKlmJr53pdxD8dIEoekwv64tzSlM=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 6:YWpzgXykc/GPOwQrtWPDEdrU3pR/nu5ze7kEHqCweTkFbUWJDW4d8NyZM2sk2L7bkw9NJwhd8nDX71cSFhFJJP2w6e/Rt4FWBp4E/mdFJ43WwH161XS+fupmBMaV4PpbFxmyfHX9B7yzw47R1RodLccioPbrwmR1R1xpnvhv1F55E6fTKCrEttZsszv91xuyE6DdUGu3YUl3W3SX+byz3e8hARO9s+Hz64JBTFxxPAkgm0YRl0MpWSgHRiWgyOO9Gqgy4HDkMSCica7ow7brK64DFxruSwi9W1iuwb9WvQK7SJtGR+eWq6SpNV8yL82NJEJaPWGmgcxUR6oDZMeEMsrR9cMBwFMta4wjD2rvuSYLjqtUiBmpg49XFgyeQmnItDzYIbMyeB1WF19qmZvijG2gQxUs/59vDJD3tAypa640+8Na1mFVPbmJzoWuYZ9tAQmMGvN7j+L+F4/KU5w3CA==; 5:NEwtVx4nsNT4lWpwJc3ttABn5e3q/rG5di11tha6R8Baeoyn3yEs72IIFBbRQDrYIF/RyD4j6Sl3lNiBs6OET5uW90oAubBfNYnqtU7jLNoQcQ8j5Y1Za1rtOGaDhJHArRHCt6Okrn6Gxgu0jvqyiQ==; 24:hkySyP+TWRNoU4iZHspDXpycILN4jPPuFLpd5UY0JZQvJKtGYPSZHlnjb4NOoeq7/tpjz7oh8Ow2AKs7Kq8bI+bGLg9wQtLP2eQ46E6u4vE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR06MB2774; 7:LSzJCu6COcsVDTk/FBSWHEtI9LbPbOpaUQr0UgWLYtAnNqCkz5jfpwWkt+huRNGqpubWT3+P/T+e5ke2JcWdwrSvRgekx+KK7Wwbql4GEVcg+sYWBYsojCyfat8IzhQbiZX8TDUV2Ymxt06D5/0W5ckV54jL8HO/8/4xrz6QsqJoJQSnQLeKPqHDpQGLr5eaAj/9Kauk6ZNvYOapGVrsTGhvmaWYQYcS3vcBft0iu1ioztV+SQw4lJTibEvFaN+ngDBsAuckazy7fS9003ZHHGGR5bazPFglYjXTvGHR2lz0RZm9AUC0qQAuVh+ubfYbeZXwTFflReyPi7sFTwPxFQ== X-OriginatorOrg: cnexlabs.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2017 18:56:31.3315 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR06MB2774 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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;