net: dpaa2-eth: Simplify bool conversion
Subsystems (3)
PATCH 1/1 net: dpaa2-eth: Simplify bool conversion
./drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c:453:42-47: WARNING: conversion to bool not needed here
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c +1 -1
@@ -450,5 +450,5 @@ bool dpaa2_xsk_tx(struct dpaa2_eth_priv *priv,xsk_tx_release (ch->xsk_pool); -return total_enqueued == budget ? true : false; +return total_enqueued == budget; }
Signature · 1 line
2.20.1.7.g153144c
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Wed, 26 Oct 2022 13:18:24 +0800 you wrote:
./drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c:453:42-47: WARNING: conversion to bool not needed here
Reported-by Abaci Robot <[email protected]>Signed-off-by Yang Li <[email protected]>--- drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] net: dpaa2-eth: Simplify bool conversion
https://git.kernel.org/netdev/net-next/c/148b811c7797
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html