From: Moritz Fischer Date: Tue, 27 Jun 2023 03:54:32 +0000 (+0000) Subject: net: lan743x: Simplify comparison X-Git-Tag: v6.6.17~4555^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30ac666a2fccaa8c164199ea8844dc28aa714453;p=platform%2Fkernel%2Flinux-rpi.git net: lan743x: Simplify comparison Simplify comparison, no functional changes. Cc: Bryan Whitehead Cc: UNGLinuxDriver@microchip.com Suggested-by: Jakub Kicinski Signed-off-by: Moritz Fischer Link: https://lore.kernel.org/r/20230627035432.1296760-1-moritzf@google.com Signed-off-by: Jakub Kicinski --- diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c index f1bded9..5b0e8b0 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); }