Re: [PATCH] IB/qib: remove unused cnt variable

From: Leon Romanovsky
Date: Mon Apr 03 2023 - 14:24:11 EST



On Thu, 30 Mar 2023 19:58:00 -0400, Tom Rix wrote:
> clang with W=1 reports
> drivers/infiniband/hw/qib/qib_file_ops.c:487:20: error: variable
> 'cnt' set but not used [-Werror,-Wunused-but-set-variable]
> u32 tid, ctxttid, cnt, limit, tidcnt;
> ^
> drivers/infiniband/hw/qib/qib_file_ops.c:1771:9: error: variable
> 'cnt' set but not used [-Werror,-Wunused-but-set-variable]
> int i, cnt = 0, maxtid = ctxt_tidbase + dd->rcvtidcnt;
> ^
> This variable is not used so remove it.
>
> [...]

Applied, thanks!

[1/1] IB/qib: remove unused cnt variable
https://git.kernel.org/rdma/rdma/c/e7706c4bbfe88f

Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>