diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2022-10-26 08:18:24 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-10-28 06:34:31 +0300 |
commit | 148b811c7797c3facb3da509a63c80f30a039f4a (patch) | |
tree | 4afda3c72d9241875fd864ab87798e96bdf2cb53 /drivers | |
parent | 3e8e4aa5daf750092f2fae03e5ffc289a5c630f5 (diff) | |
download | linux-148b811c7797c3facb3da509a63c80f30a039f4a.tar.xz |
net: dpaa2-eth: Simplify bool conversion
./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>
Link: https://lore.kernel.org/r/20221026051824.38730-1-yang.lee@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |