Received: by 10.223.176.5 with SMTP id f5csp71405wra; Tue, 30 Jan 2018 08:14:06 -0800 (PST) X-Google-Smtp-Source: AH8x227BY5UlO+HkbCZkZFvBt3t95zn0cvCOpQL/SeTl4/a2JffAEPToABZatYh3b0LI+buZ7BNj X-Received: by 10.98.159.139 with SMTP id v11mr30198508pfk.64.1517328846328; Tue, 30 Jan 2018 08:14:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517328846; cv=none; d=google.com; s=arc-20160816; b=bJyQLuRmAdHpuuawz0GrRHqFea48lcBHnI35sl1RDjaafYJQ8izp9Q5+zCTYHXuwGT P1osMXw8Wp2gllvsvimJGSkWD4CGqDjzw6QJcii5e1kp5YDTleTidF1wv2H15+pVt4Wu aTMOLfjWVfaKBc3jcbZg536CHt4zbKSd+hN5c1qO4SoVMrHtAIpeBBw6WT5zZuUw2Jq0 6PQcu7RF/Nm8w63893Anrcuz4OdzCsHPxUVTL/HznGQBl37G+2mkIppeL+chZjdcXUq/ Mh8O/naeSI61IAA+guq846XDaEi4r3PVoD43SQTjWP9rlGZXERh0sDYSs4bOHOdk94lB JoWA== 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=5F2jAkOHNLUTcuZ/W9z087VnMiV6CD3MQuVqkR0tEi8=; b=qzTYqy1UOULhOVbUgEInYOBqpax5Sf7m8MiRt9V8LwwWFWWVEGH+sCIoQulLGg84S2 /Sk6B2USbNFRZjvibi11UYewQ+1wV5WUfmYuyS14KnUA82KwHOgOrSKM2WP/Y+QnhLI4 fgENJfaY6KszkoiQqifhLNGbU3uPj/oMggKaUqb8P0WAxgsMs832Y5e9PqP8EwoVXatN uYtR3uXruakCaJb5CEsh2+hU1mZ9z+lKaY2QmGwFFxPrjqq3qBYvjgYiiAqrKOBXdHFO bZUsV98v+w2uwNZtZ290BxrmTgNp7MJxOqjjT8P04TqkPigK/dajbSUrByBSf3XJslaI yTGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=JkxW+C6v; 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 u4-v6si2206351pls.458.2018.01.30.08.13.51; Tue, 30 Jan 2018 08:14:06 -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=JkxW+C6v; 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 S1752931AbeA3ObC (ORCPT + 99 others); Tue, 30 Jan 2018 09:31:02 -0500 Received: from mail-lf0-f66.google.com ([209.85.215.66]:41030 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752375AbeA3ObA (ORCPT ); Tue, 30 Jan 2018 09:31:00 -0500 Received: by mail-lf0-f66.google.com with SMTP id f136so15631542lff.8 for ; Tue, 30 Jan 2018 06:31:00 -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=5F2jAkOHNLUTcuZ/W9z087VnMiV6CD3MQuVqkR0tEi8=; b=JkxW+C6vgEVTVLpz4HhTlaKTpVafANXb6ljCuJIXU0NURTYCouoFkEl5Q9aSx2pvPD f3VA9YHqdEuIId7shFbZYzidH+rGIUBkvRbXuE9h57hdAZqq+Rn5q4iVE1hZTJRXzZ6w RWSxhbDOlFpg5MpjuoI8M5iTRvBgCdiD5ivSkJiQsVehPA6oEOAG/omnBGaPIZ1l69GR lPoTiDnJwlRrjXYMEXaSShLgNui1DkEbjUxHKFPHpTqp53Vr7rWIbSMSwYxsRGbbXIHV pNwqQDZuZau1fEtPlFEcwLmrulX4wnQJ9DqCthBU//FUS8TXa33K5SPjH0lvhxbQPdBL duzw== 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=5F2jAkOHNLUTcuZ/W9z087VnMiV6CD3MQuVqkR0tEi8=; b=aiXUJ53JWYo1G4KJY4WbVs2pWnTqXG3dy2yeCZzjIWTnvFKgaA7peMnq0hb3fM1OJg vWjoAWcsPilrXuaY86ivFaOhBXD2ddrcAg/CLpff//Be61n8PbP2csk5o3EpjJyi8Ui9 wpiByu01WOFu2lI8fMMcvs1tu1knKwhPzFiZrHvawWna+bFfAgqzrQOnxqlLR+2Lrm+r XN8sd9pEEZqW1/e5zBoWLh0lJaF9FD4BNFEwJho+tFkmwBrXkwhRObAi2iY7pYhrV7GE 4eO13arBMv6ZNAFIFnA7mrFqCy2pUyBpAJO7GKedafp0p1M7H2MZk2u30w02PSoCgLN4 EzBw== X-Gm-Message-State: AKwxytenMl7DvPabefHGSHAZoL3E/fx3rKDmYsJRJCoBdcDjCX+Kq8jb JTC6tnuod5OVFAn5+C9ZLP7blZv6 X-Received: by 10.25.156.20 with SMTP id f20mr12191907lfe.12.1517322659311; Tue, 30 Jan 2018 06:30:59 -0800 (PST) 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 u10sm2788355lju.32.2018.01.30.06.30.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 30 Jan 2018 06:30:58 -0800 (PST) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: linux-block@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH] lightnvm: remove chnl_offset in nvme_nvm_identity Date: Tue, 30 Jan 2018 15:30:50 +0100 Message-Id: <20180130143050.18355-1-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 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 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 e5544806fb0e..dc0b1335c7c6 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 { @@ -268,7 +267,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) -- 2.11.0