aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2019-05-20 09:54:25 +0300
committerJason Gunthorpe <jgg@mellanox.com>2019-05-21 15:50:53 -0300
commitdab99af99c7ca4c9dbea7d4d218ef7eb6b183aaf (patch)
treec650a90f040efbf0fde02929981eadc7b8123427 /drivers
parentRDMA/i40iw: Remove useless NULL checks (diff)
downloadlinux-dev-dab99af99c7ca4c9dbea7d4d218ef7eb6b183aaf.tar.xz
linux-dev-dab99af99c7ca4c9dbea7d4d218ef7eb6b183aaf.zip
RDMA/nes: Remove second wait queue initialization call
The same wait queue is initialized a couple of lines above. Fixes: 3c2d774cad5b ("RDMA/nes: Add a driver for NetEffect RNICs") Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/nes/nes_utils.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_utils.c b/drivers/infiniband/hw/nes/nes_utils.c
index 21b4a8373acf..90f28890246d 100644
--- a/drivers/infiniband/hw/nes/nes_utils.c
+++ b/drivers/infiniband/hw/nes/nes_utils.c
@@ -586,7 +586,6 @@ struct nes_cqp_request *nes_get_cqp_request(struct nes_device *nesdev)
cqp_request->waiting = 0;
cqp_request->request_done = 0;
cqp_request->callback = 0;
- init_waitqueue_head(&cqp_request->waitq);
nes_debug(NES_DBG_CQP, "Got cqp request %p from the available list \n",
cqp_request);
} else