diff options
author | Chaitanya Kulkarni <kch@nvidia.com> | 2024-02-12 23:58:24 -0800 |
---|---|---|
committer | Keith Busch <kbusch@kernel.org> | 2024-02-13 15:42:44 -0800 |
commit | 8d30528a170905ede9ab6ab81f229e441808590b (patch) | |
tree | 42a4c332410d4fb742b544b823390536c0baeb23 /drivers/nvme | |
parent | 29f6975332479f92233594901c649ff4d71f8cb6 (diff) | |
download | linux-8d30528a170905ede9ab6ab81f229e441808590b.tar.gz linux-8d30528a170905ede9ab6ab81f229e441808590b.tar.bz2 linux-8d30528a170905ede9ab6ab81f229e441808590b.zip |
nvmet: remove superfluous initialization
Remove superfluous initialization of status variable in
nvmet_execute_admin_connect() and nvmet_execute_io_connect(), since it
will get overwritten by nvmet_copy_from_sgl().
Signed-off-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'drivers/nvme')
-rw-r--r-- | drivers/nvme/target/fabrics-cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/fabrics-cmd.c b/drivers/nvme/target/fabrics-cmd.c index d8da840a1c0e..9964ffe347d2 100644 --- a/drivers/nvme/target/fabrics-cmd.c +++ b/drivers/nvme/target/fabrics-cmd.c @@ -209,7 +209,7 @@ static void nvmet_execute_admin_connect(struct nvmet_req *req) struct nvmf_connect_command *c = &req->cmd->connect; struct nvmf_connect_data *d; struct nvmet_ctrl *ctrl = NULL; - u16 status = 0; + u16 status; int ret; if (!nvmet_check_transfer_len(req, sizeof(struct nvmf_connect_data))) @@ -290,7 +290,7 @@ static void nvmet_execute_io_connect(struct nvmet_req *req) struct nvmf_connect_data *d; struct nvmet_ctrl *ctrl; u16 qid = le16_to_cpu(c->qid); - u16 status = 0; + u16 status; if (!nvmet_check_transfer_len(req, sizeof(struct nvmf_connect_data))) return; |