net: lan743x: Simplify comparison
Subsystems (3)
PATCH 1/1 net: lan743x: Simplify comparison
Simplify comparison, no functional changes.
Cc Bryan Whitehead <[email protected]>
Suggested-by Jakub Kicinski <[email protected]>
Signed-off-by Moritz Fischer <[email protected]>
--- drivers/net/ethernet/microchip/lan743x_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/microchip/lan743x_main.c +1 -1
@@ -164,7 +164,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); }
Signature · 1 line
2.41.0.178.g377b9f9a00-goog
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Tue, 27 Jun 2023 03:54:32 +0000 you wrote:
Simplify comparison, no functional changes.
Cc Bryan Whitehead <[email protected]>Suggested-by Jakub Kicinski <[email protected]>Signed-off-by Moritz Fischer <[email protected]>[...]
Here is the summary with links:
- [net-next] net: lan743x: Simplify comparison
https://git.kernel.org/netdev/net-next/c/30ac666a2fcc
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html