net: dpaa2-eth: Simplify bool conversion
authorYang Li <yang.lee@linux.alibaba.com>
Wed, 26 Oct 2022 05:18:24 +0000 (13:18 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 28 Oct 2022 03:34:31 +0000 (20:34 -0700)
./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>
drivers/net/ethernet/freescale/dpaa2/dpaa2-xsk.c

index 567f52a..051748b 100644 (file)
@@ -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;
 }