OSDN Git Service

nvmet: remove an unnecessary function parameter to nvmet_check_ctrl_status
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Thu, 25 Feb 2021 01:56:40 +0000 (17:56 -0800)
committerChristoph Hellwig <hch@lst.de>
Fri, 2 Apr 2021 16:48:25 +0000 (18:48 +0200)
commit7798df6fcf4457d151a693f5948f232b13bcb937
tree88a3f8d91c1b5aafedf90521f332482c54abb191
parenta56f14c26df8127815e35ae0272296aaa917a22e
nvmet: remove an unnecessary function parameter to nvmet_check_ctrl_status

In nvmet_check_ctrl_status() cmd can be derived from nvmet_req. Remove
the local variable cmd in the nvmet_check_ctrl_status() and function
parameter cmd for nvmet_check_ctrl_status(). Derive the cmd value from
req parameter in the nvmet_check_ctrl_status().

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
drivers/nvme/target/core.c
drivers/nvme/target/nvmet.h