]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: remove extra variable in id-desclist
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 14 Jan 2021 01:33:53 +0000 (17:33 -0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 2 Feb 2021 09:26:11 +0000 (10:26 +0100)
commitf613139c57ee7a6619050a361a76f057d261c745
treed1fbcfe1cb042b66d5c1d1888c97461f0039ccbb
parentcbb9f3600080288ff992d311230c4fa7db4198af
nvmet: remove extra variable in id-desclist

We remove the extra local variable struct nvmet_ns in
nvmet_execute_identify_desclist() since req already has ns member that
can be reused, this also eliminates the explicit call to
nvmet_put_namespace() which is already present in the request
completion path.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c