Re: [PATCH rdma-next] RDMA/qedr: remove set but not used variable 'ctx'

From: Jason Gunthorpe
Date: Wed Sep 05 2018 - 17:56:23 EST


On Sat, Sep 01, 2018 at 03:53:46AM +0000, YueHaibing wrote:
> Fixes gcc '-Wunused-but-set-variable' warning:
>
> drivers/infiniband/hw/qedr/verbs.c: In function 'qedr_create_srq':
> drivers/infiniband/hw/qedr/verbs.c:1450:24: warning:
> variable 'ctx' set but not used [-Wunused-but-set-variable]
>
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> Acked-by: Rahul Verma <rahul.verma@xxxxxxxxxx>
> ---
> drivers/infiniband/hw/qedr/verbs.c | 2 --
> 1 file changed, 2 deletions(-)

Applied to for-next, thanks

Jason