* [PATCH net-next] net: dpaa2-eth: Simplify bool conversion
@ 2022-10-26 5:18 Yang Li
2022-10-28 4:10 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2022-10-26 5:18 UTC (permalink / raw)
To: ioana.ciornei
Cc: davem, edumazet, kuba, pabeni, netdev, linux-kernel, Yang Li,
Abaci Robot
./drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c:453:42-47: WARNING: conversion to bool not needed here
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2577
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
index 567f52affe21..051748b997f3 100644
--- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
+++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c
@@ -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;
}
--
2.20.1.7.g153144c
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net-next] net: dpaa2-eth: Simplify bool conversion
2022-10-26 5:18 [PATCH net-next] net: dpaa2-eth: Simplify bool conversion Yang Li
@ 2022-10-28 4:10 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-10-28 4:10 UTC (permalink / raw)
To: Yang Li
Cc: ioana.ciornei, davem, edumazet, kuba, pabeni, netdev,
linux-kernel, abaci
Hello:
This patch was applied to netdev/net-next.git (master)
by Jakub Kicinski <kuba@kernel.org>:
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
>
> Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2577
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
> ---
> 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!
--
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:[~2022-10-28 4:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 5:18 [PATCH net-next] net: dpaa2-eth: Simplify bool conversion Yang Li
2022-10-28 4:10 ` 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).