IB/qib: Remove unused cnt variable
authorTom Rix <trix@redhat.com>
Thu, 30 Mar 2023 23:58:00 +0000 (19:58 -0400)
committerLeon Romanovsky <leon@kernel.org>
Mon, 3 Apr 2023 12:46:53 +0000 (15:46 +0300)
commite7706c4bbfe88fe5bc9b8a6b1b5a84a5d58e2f7e
tree211c1c8df4c16d8024708659ef06270a756a6f92
parent081c27b3bcdbfad6fa3c16975e02e33073f1267d
IB/qib: Remove unused cnt variable

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.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20230330235800.1845815-1-trix@redhat.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/qib/qib_file_ops.c