aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/core/ucm.c1
-rw-r--r--drivers/infiniband/core/ucma.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c
index 06f08713f487..49b15ac1987e 100644
--- a/drivers/infiniband/core/ucm.c
+++ b/drivers/infiniband/core/ucm.c
@@ -397,7 +397,6 @@ static ssize_t ib_ucm_event(struct ib_ucm_file *file,
397 struct ib_ucm_event_get cmd; 397 struct ib_ucm_event_get cmd;
398 struct ib_ucm_event *uevent; 398 struct ib_ucm_event *uevent;
399 int result = 0; 399 int result = 0;
400 DEFINE_WAIT(wait);
401 400
402 if (out_len < sizeof(struct ib_ucm_event_resp)) 401 if (out_len < sizeof(struct ib_ucm_event_resp))
403 return -ENOSPC; 402 return -ENOSPC;
diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
index 055ed59838dc..7972bae2e9b3 100644
--- a/drivers/infiniband/core/ucma.c
+++ b/drivers/infiniband/core/ucma.c
@@ -310,7 +310,6 @@ static ssize_t ucma_get_event(struct ucma_file *file, const char __user *inbuf,
310 struct rdma_ucm_get_event cmd; 310 struct rdma_ucm_get_event cmd;
311 struct ucma_event *uevent; 311 struct ucma_event *uevent;
312 int ret = 0; 312 int ret = 0;
313 DEFINE_WAIT(wait);
314 313
315 if (out_len < sizeof uevent->resp) 314 if (out_len < sizeof uevent->resp)
316 return -ENOSPC; 315 return -ENOSPC;