]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: remove a superfluous variable
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 3 Jun 2021 00:37:58 +0000 (17:37 -0700)
committerChristoph Hellwig <hch@lst.de>
Thu, 3 Jun 2021 07:29:26 +0000 (10:29 +0300)
commit17633e9975a1d9a706c5d33df9a9a2b4dde9741a
treec7c7b27dd8f8c1f1e3d30fcd3190dadac8de08e7
parent652b88e60e0d622486c28d41779c92015e42297f
nvmet: remove a superfluous variable

Remove the superfluous variable "bdev" that is only used once in the
nvmet_bdev_alloc_bip() and use req->ns->bdev that is used everywhere in
the code to access the nvmet request's bdev.

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