aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Fischer <[email protected]>2023-06-27 03:54:32 +0000
committerJakub Kicinski <[email protected]>2023-06-27 09:53:00 -0700
commit30ac666a2fccaa8c164199ea8844dc28aa714453 (patch)
tree81c8cb3c378dd89ec6ae588cba6ade5e80e9b688
parent3674fbf0451df0395f9fa18df3122927006a3829 (diff)
net: lan743x: Simplify comparison
Simplify comparison, no functional changes. Cc: Bryan Whitehead <[email protected]> Cc: [email protected] Suggested-by: Jakub Kicinski <[email protected]> Signed-off-by: Moritz Fischer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
-rw-r--r--drivers/net/ethernet/microchip/lan743x_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c
index f1bded993edc..5b0e8b0e0c89 100644
--- a/drivers/net/ethernet/microchip/lan743x_main.c
+++ b/drivers/net/ethernet/microchip/lan743x_main.c
@@ -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);
}