diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-05-13 12:59:52 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-06-03 10:29:24 +0300 |
commit | 13ce7e625a3383004181217985a70d16c3cbe8be (patch) | |
tree | d20cd46857f040e76f0f86da78c03e6470aebd66 /drivers/nvme/host/rdma.c | |
parent | 8184035805dc87dd826101b930d3dce97758f7b1 (diff) | |
download | linux-13ce7e625a3383004181217985a70d16c3cbe8be.tar.gz linux-13ce7e625a3383004181217985a70d16c3cbe8be.tar.bz2 linux-13ce7e625a3383004181217985a70d16c3cbe8be.zip |
nvme: remove redundant initialization of variable ret
The variable ret is being initialized with a value that is never read,
it is being updated later on. The assignment is redundant and can be
removed.
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/rdma.c')
-rw-r--r-- | drivers/nvme/host/rdma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/nvme/host/rdma.c b/drivers/nvme/host/rdma.c index 37943dc4c2c1..74bf2c7f2b80 100644 --- a/drivers/nvme/host/rdma.c +++ b/drivers/nvme/host/rdma.c @@ -1088,7 +1088,7 @@ static void nvme_rdma_reconnect_or_remove(struct nvme_rdma_ctrl *ctrl) static int nvme_rdma_setup_ctrl(struct nvme_rdma_ctrl *ctrl, bool new) { - int ret = -EINVAL; + int ret; bool changed; ret = nvme_rdma_configure_admin_queue(ctrl, new); |