From: Yang Li Date: Wed, 26 Oct 2022 05:18:24 +0000 (+0800) Subject: net: dpaa2-eth: Simplify bool conversion X-Git-Tag: microblaze-v6.6~1543^2~351 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=148b811c7797c3facb3da509a63c80f30a039f4a;p=linux-2.6-microblaze.git 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 Signed-off-by: Yang Li Link: https://lore.kernel.org/r/20221026051824.38730-1-yang.lee@linux.alibaba.com Signed-off-by: Jakub Kicinski --- 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; }