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)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 20 Mar 2023 17:00:58 +0000 (19:00 +0200)
commit58cdfe6f58b35f17f56386f5fcf937168a423ad1
treec773fa1cf7ba139fe39feefbfa37884f6c23a28a
parent468c49f44759720a312e52d44a71c3949ed63d7c
thunderbolt: Rename shadowed variables bit to interrupt_bit and auto_clear_bit

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>
drivers/thunderbolt/nhi.c