mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 19:24:01 -04:00
net: lan743x: Simplify comparison
Simplify comparison, no functional changes. Cc: Bryan Whitehead <bryan.whitehead@microchip.com> Cc: UNGLinuxDriver@microchip.com Suggested-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Moritz Fischer <moritzf@google.com> Link: https://lore.kernel.org/r/20230627035432.1296760-1-moritzf@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
3674fbf045
commit
30ac666a2f
@@ -152,7 +152,7 @@ static int lan743x_csr_wait_for_bit(struct lan743x_adapter *adapter,
|
||||
u32 data;
|
||||
|
||||
return readx_poll_timeout(LAN743X_CSR_READ_OP, offset, data,
|
||||
target_value == ((data & bit_mask) ? 1 : 0),
|
||||
target_value == !!(data & bit_mask),
|
||||
usleep_max, usleep_min * count);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user