Skip to contentSkip to conversation

net: dpaa2-eth: Simplify bool conversion

PATCH Applied Yang Li 2 participants 2 messages Oct 26, 2022 – Oct 28, 2022

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

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

---
 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
index 567f52affe21..051748b997f3 100644
@@ -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
#1 lore raw
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

---
 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