Re: [PATCH linux-next] RDMA/hns: fix returnvar.cocci warning

From: Jason Gunthorpe
Date: Wed May 04 2022 - 20:01:38 EST


On Tue, Apr 26, 2022 at 03:08:58PM +0800, Guo Zhengkui wrote:
> Fix the following coccicheck warning:
> drivers/infiniband/hw/hns/hns_roce_mr.c:343:5-8: Unneeded variable: "ret".
> Return "0" on line 351.
>
> Signed-off-by: Guo Zhengkui <guozhengkui@xxxxxxxx>
> ---
> drivers/infiniband/hw/hns/hns_roce_mr.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)

Applied to for-next, thanks

Jason