Skip to content

Commit 30ac666

Browse files
mfischerkuba-moo
authored andcommitted
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]>
1 parent 3674fbf commit 30ac666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/microchip/lan743x_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static int lan743x_csr_wait_for_bit(struct lan743x_adapter *adapter,
152152
u32 data;
153153

154154
return readx_poll_timeout(LAN743X_CSR_READ_OP, offset, data,
155-
target_value == ((data & bit_mask) ? 1 : 0),
155+
target_value == !!(data & bit_mask),
156156
usleep_max, usleep_min * count);
157157
}
158158

0 commit comments

Comments
 (0)