]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-core: remove extra variable
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 1 Oct 2020 18:54:31 +0000 (11:54 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 7 Oct 2020 05:56:20 +0000 (07:56 +0200)
commitfa0786c2de5709aa9c7af795c1a3da41ae800472
treebbf023ccec5d92e2d43962d04d2c4f7a0114addb
parent356c95e443ca311a9d70c90b1dba726d7b690e2b
nvme-core: remove extra variable

In nvme_validate_ns() the exra variable ctrl is used only twice.
Using ns->ctrl directly still maintains the redability and original
length of the lines in the code. Get rid of the extra variable ctrl &
use ns->ctrl directly.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c