From patchwork Tue Jan 30 14:30:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10191909 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 A21796020C for ; Tue, 30 Jan 2018 14:31:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9420728A5A for ; Tue, 30 Jan 2018 14:31:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 88EE528A68; Tue, 30 Jan 2018 14:31:03 +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 8734C28A1B for ; Tue, 30 Jan 2018 14:31:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752919AbeA3ObB (ORCPT ); Tue, 30 Jan 2018 09:31:01 -0500 Received: from mail-lf0-f65.google.com ([209.85.215.65]:46851 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752558AbeA3ObA (ORCPT ); Tue, 30 Jan 2018 09:31:00 -0500 Received: by mail-lf0-f65.google.com with SMTP id q194so15616379lfe.13 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=l8TOVd4S5RVwWJ6Ai1Ty4tjuiWnWwY/pt3R/W56sseAPh9soS+msQW+L6V/MKY0hU3 AqW66hxEyQHncnXf4EoVxkH7zGa4RpseDLgPeBNfcwIcK57E4E5s6rjx6+Fy7mVN2j6J 7p/AA+a3AbK2StZVVJcs44NCajqorrf9jT8nTTpPThguRu+fDWDuw8Wee0o0aQEule0J oJuUUgBrHIsTIBMYaIuH3DktTii7CyXvkccn4pfXRQG3GQ7sEXqiyC4nk1iNKqpSh9dm QQqf8LO5g1NsYbEVyV0vUnZiZ8HInqeK3srWMMwEptMiO9ARRe72F7lSw4jgrbSb/xXH gNnA== X-Gm-Message-State: AKwxytdU29eU/xUMDayAuiRYkNsI2Z6qkhjZueM69JiCTYv4tm0KHino X4o7i42vQvsWknm07OlYJ8+lUJnQ X-Google-Smtp-Source: AH8x227EzWLEpd4HPR4iXYfEHaHAt4/Jn1utF1aEMHVFmQLCwqhydShw5YDntvUf957IBPrVegB3+g== 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 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 Reviewed-by: Javier González --- 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)