# RE: \[PATCH for-next 1/4\] IB/core: Remove unused variables in ucm/ucma

- From: Hefty, Sean \<hidden\>
- Date: 2012-08-23 19:01:24 
- List: linux-rdma
- Page: https://ratatoskr.run/linux-rdma/2012/08/15419037
- Thread: https://ratatoskr.run/linux-rdma/2012/08/15419037/t.md

```text
> From: Dotan Barak <redacted>
> 
> Remove unused wait objects from ucm/ucma events flow.
> 
> Signed-off-by: Dotan Barak <redacted>
> Signed-off-by: Or Gerlitz <redacted>

Acked-by: Sean Hefty <redacted>

> ---

It looks like these were last used in 2.6.21.

>  drivers/infiniband/core/ucm.c  |    1 -
>  drivers/infiniband/core/ucma.c |    1 -
>  2 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/infiniband/core/ucm.c b/drivers/infiniband/core/ucm.c
> index 06f0871..49b15ac 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,
>  	struct ib_ucm_event_get cmd;
>  	struct ib_ucm_event *uevent;
>  	int result = 0;
> -	DEFINE_WAIT(wait);
> 
>  	if (out_len < sizeof(struct ib_ucm_event_resp))
>  		return -ENOSPC;
> diff --git a/drivers/infiniband/core/ucma.c b/drivers/infiniband/core/ucma.c
> index 055ed59..7972bae 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,
>  	struct rdma_ucm_get_event cmd;
>  	struct ucma_event *uevent;
>  	int ret = 0;
> -	DEFINE_WAIT(wait);
> 
>  	if (out_len < sizeof uevent->resp)
>  		return -ENOSPC;
> --
> 1.7.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
```
