diff options
| author | Tom Rix <[email protected]> | 2023-03-15 22:04:50 +0000 |
|---|---|---|
| committer | Mika Westerberg <[email protected]> | 2023-03-20 17:00:58 +0000 |
| commit | 58cdfe6f58b35f17f56386f5fcf937168a423ad1 (patch) | |
| tree | c773fa1cf7ba139fe39feefbfa37884f6c23a28a /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | thunderbolt: Disable interrupt auto clear for rings (diff) | |
| download | kernel-58cdfe6f58b35f17f56386f5fcf937168a423ad1.tar.gz kernel-58cdfe6f58b35f17f56386f5fcf937168a423ad1.zip | |
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: [email protected]
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Mika Westerberg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
