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)
commitaf5d6f7ba5f99f8316473557240ae9acdd20a6bd
treebbf023ccec5d92e2d43962d04d2c4f7a0114addb
parent7b15336257ed5623cddefa8d33069777494c98e0
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