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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jan 17, 2019 at 03:21:47AM +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:1436:22: warning:
>  variable 'ib_ctx' set but not used [-Wunused-but-set-variable]
> 
> drivers/infiniband/hw/qedr/verbs.c: In function 'qedr_create_user_qp':
> drivers/infiniband/hw/qedr/verbs.c:1701:22: warning:
>  variable 'ib_ctx' set but not used [-Wunused-but-set-variable]
> 
> It not used since commit b0ea0fa5435f ("IB/{core,hw}: Have ib_umem_get extract
> the ib_ucontext from ib_udata")
> 
> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
> ---
>  drivers/infiniband/hw/qedr/verbs.c | 6 ------
>  1 file changed, 6 deletions(-)

I added a fixes line

Applied to for-next thanks

Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux