* [PATCH net-next] net: lan743x: Simplify comparison
@ 2023-06-27 3:54 Moritz Fischer
2023-06-27 17:04 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Moritz Fischer @ 2023-06-27 3:54 UTC (permalink / raw)
To: netdev
Cc: pabeni, kuba, edumazet, davem, bryan.whitehead, UNGLinuxDriver,
mdf, Moritz Fischer
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>
---
drivers/net/ethernet/microchip/lan743x_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/microchip/lan743x_main.c b/drivers/net/ethernet/microchip/lan743x_main.c
index 61eadc0bca8b..a36f6369f132 100644
--- a/drivers/net/ethernet/microchip/lan743x_main.c
+++ b/drivers/net/ethernet/microchip/lan743x_main.c
@@ -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);
}
--
2.41.0.178.g377b9f9a00-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: lan743x: Simplify comparison
2023-06-27 3:54 [PATCH net-next] net: lan743x: Simplify comparison Moritz Fischer
@ 2023-06-27 17:04 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-06-27 17:04 UTC (permalink / raw)
To: Moritz Fischer
Cc: netdev, pabeni, kuba, edumazet, davem, bryan.whitehead,
UNGLinuxDriver, mdf
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 27 Jun 2023 03:54:32 +0000 you wrote:
> 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>
>
> [...]
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!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-27 17:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-27 3:54 [PATCH net-next] net: lan743x: Simplify comparison Moritz Fischer
2023-06-27 17:04 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).