thunderbolt: Rename shadowed variables bit to interrupt_bit and auto_clear_bit
authorTom Rix <trix@redhat.com>
Wed, 15 Mar 2023 22:04:50 +0000 (18:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:47:52 +0000 (12:47 +0200)
commit8dc1c6efd7d284f799d27151b1346f938a7f8c17
tree1273efe533719e53243d25b9b9053fdbfd184d5e
parenta74a2e124c4888c3c1cc3091aa5f4044bf92fd54
thunderbolt: Rename shadowed variables bit to interrupt_bit and auto_clear_bit

commit 58cdfe6f58b35f17f56386f5fcf937168a423ad1 upstream.

cppcheck reports
drivers/thunderbolt/nhi.c:74:7: style: Local variable 'bit' shadows outer variable [shadowVariable]
  int bit;
      ^
drivers/thunderbolt/nhi.c:66:6: note: Shadowed declaration
 int bit = ring_interrupt_index(ring) & 31;
     ^
drivers/thunderbolt/nhi.c:74:7: note: Shadow variable
  int bit;
      ^
For readablity rename the outer to interrupt_bit and the innner
to auto_clear_bit.

Fixes: 468c49f44759 ("thunderbolt: Disable interrupt auto clear for ring")
Cc: stable@vger.kernel.org
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/nhi.c