Re: [PATCH -next] IB/qib: remove unused variable ret

From: Jason Gunthorpe
Date: Tue Apr 14 2020 - 15:35:31 EST


On Mon, Apr 13, 2020 at 10:42:04AM +0800, Zou Wei wrote:
> This patch fixes below warnings reported by coccicheck
>
> drivers/infiniband/hw/qib/qib_iba7322.c:6878:8-11:
> Unneeded variable: "ret". Return "0" on line 6907
> drivers/infiniband/hw/qib/qib_iba7322.c:2378:5-8:
> Unneeded variable: "ret". Return "0" on line 2513
>
> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
> Signed-off-by: Zou Wei <zou_wei@xxxxxxxxxx>
> ---
> drivers/infiniband/hw/qib/qib_iba7322.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)

Applied to for-next, thanks

Jason