Re: [PATCH -next] IB/mlx4: Remove set but not used variable 'pd'

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

 



On 2018/12/21 11:48, Jason Gunthorpe wrote:
> On Fri, Dec 21, 2018 at 02:05:57AM +0000, YueHaibing wrote:
>> Fixes gcc '-Wunused-but-set-variable' warning:
>>
>> drivers/infiniband/hw/mlx4/qp.c: In function '_mlx4_ib_destroy_qp':
>> drivers/infiniband/hw/mlx4/qp.c:1612:22: warning:
>>  variable 'pd' set but not used [-Wunused-but-set-variable]
>>
>> It not used since commit e00b64f7c54c ("RDMA: Cleanup undesired
>> pd->uobject usage")
>>
>> Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
>> ---
>>  drivers/infiniband/hw/mlx4/qp.c | 3 ---
>>  1 file changed, 3 deletions(-)
> 
> I wonder why my compiler didn't flag this..

just use make W=1

> 
> Applied to for-next, thanks
> 
> Jason
> 
> 




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux