From patchwork Thu Mar 29 22:04:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10316457 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 1C90560353 for ; Thu, 29 Mar 2018 22:07:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 047D72A531 for ; Thu, 29 Mar 2018 22:07:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC08E2A533; Thu, 29 Mar 2018 22:07: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=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 CA87D2A531 for ; Thu, 29 Mar 2018 22:06:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752065AbeC2WG6 (ORCPT ); Thu, 29 Mar 2018 18:06:58 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:34760 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbeC2WG6 (ORCPT ); Thu, 29 Mar 2018 18:06:58 -0400 Received: by mail-lf0-f65.google.com with SMTP id c78-v6so10370184lfh.1 for ; Thu, 29 Mar 2018 15:06:57 -0700 (PDT) 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=vY6xFglramBVYvwwsjtR6lNXYd+G6A2FL9tUqBRWo+s=; b=E7qrHJNqbtWIfB6esCkEg/jTRd6yiPgwzbeDAgHRdBUjzeMkR9ociB9PudBrDHUpyx ZK94NkLGfsCWJHE3XezmbmbgyJ8im5xLwcbkw5vhZl3sqgTMJG5neEWPefBfZ1CcMp3x X30cL7OFijvqSQ3kuygFjJG6jXhgKyluSAawgT73BBe/WtsTkLiK6pUf3GCT1vUcGuL9 7hcUpZkzF/GnvNWcSfhW/I34TerI4ZXBR2hF1se/8684OSgtep77SN1HBOl0ha9LBkyQ aOu9VuP6TiRxbGIF440JlyTIeNstq+YQPot3w7TqJRaKCbqHROwOHKyEruUiUR5ArYT2 YrZQ== 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=vY6xFglramBVYvwwsjtR6lNXYd+G6A2FL9tUqBRWo+s=; b=BOmwKGubBX1zautAQRBj62kgyMUfIxWwdOR/TTvnEt2iZ0+uwydO2sJckND6Ve3Qap mjeC/a2EFcqyNC96+HcPHtH4qffidr6Cr6kKxPyHDrg5eoDLBd49Q1pJVwse3vnuZHxH CinMRzN092hdyOTi5poGeJ8Tc/r9fg59p3pSmr/BP1D7hGtXcE/te4qGYMREw3nUjh4v RPNfAgbh4N8Q8jAHRmV/wSa7+Oeb7xbDOp1r03nyu4+mzKIEGaIwq/tuRZzZO9/VQTJm qp5EhOysWw7/BdXLq1wBCB9eceBgUy/6iTF5i+4lQ4vIW8d/4wlqFpj1vlEo1gAokiMm w40g== X-Gm-Message-State: AElRT7HOCJwdq8oNT0pUv+CedjNYRe8v/nZAzfyiAT+hzkvKEDY+jgEF OLf9mzK7vRJNc9aV5bq6B8GY1g== X-Google-Smtp-Source: AIpwx49pv3PKPQPtBlKfO5QJk8rDrS3mbmDameMPSIv64f9HImfuJqJwm2TVz6mqrHV0Xj03qB4Zsg== X-Received: by 10.46.128.132 with SMTP id i4mr6300198ljg.51.1522361216729; Thu, 29 Mar 2018 15:06:56 -0700 (PDT) Received: from Macroninja.cnexlabs.com (x1-6-a4-08-f5-18-3c-3a.cpe.webspeed.dk. [188.176.29.198]) by smtp.gmail.com with ESMTPSA id i89-v6sm1365508lfk.12.2018.03.29.15.06.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 29 Mar 2018 15:06:55 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, keith.busch@intel.com, javier@cnexlabs.com, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [GIT PULL 02/37] lightnvm: remove chnl_offset in nvme_nvm_identity Date: Fri, 30 Mar 2018 00:04:49 +0200 Message-Id: <20180329220524.30363-3-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180329220524.30363-1-mb@lightnvm.io> References: <20180329220524.30363-1-mb@lightnvm.io> 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 The identity structure is initialized to zero in the beginning of the nvme_nvm_identity function. The chnl_offset is separately set to zero. Since both the variable and assignment is never changed, remove them. Signed-off-by: Matias Bjørling --- drivers/nvme/host/lightnvm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvme/host/lightnvm.c b/drivers/nvme/host/lightnvm.c index 50ef71ee3d86..f9c38a8d54e1 100644 --- a/drivers/nvme/host/lightnvm.c +++ b/drivers/nvme/host/lightnvm.c @@ -59,8 +59,7 @@ struct nvme_nvm_identity { __u64 rsvd[2]; __le64 prp1; __le64 prp2; - __le32 chnl_off; - __u32 rsvd11[5]; + __u32 rsvd11[6]; }; struct nvme_nvm_getbbtbl { @@ -279,7 +278,6 @@ static int nvme_nvm_identity(struct nvm_dev *nvmdev, struct nvm_id *nvm_id) c.identity.opcode = nvme_nvm_admin_identity; c.identity.nsid = cpu_to_le32(ns->head->ns_id); - c.identity.chnl_off = 0; nvme_nvm_id = kmalloc(sizeof(struct nvme_nvm_id), GFP_KERNEL); if (!nvme_nvm_id)