Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp188359rwi; Tue, 25 Oct 2022 22:48:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM58ZOb446/i0W/2tqBqFcykmrDeGucVZ4Ug/U1Z0H+f6QGVw8d9DBikRcPWVw80MmEvXchX X-Received: by 2002:a17:903:11c8:b0:179:de93:bd7e with SMTP id q8-20020a17090311c800b00179de93bd7emr42686646plh.95.1666763303328; Tue, 25 Oct 2022 22:48:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666763303; cv=none; d=google.com; s=arc-20160816; b=fAeJdPB2mssjWgHK4zR6JSybDeCLLYJlRj0ds2lrzIQZ+Ocan1Xl2Zui6cIC2cEcAZ Jy8U//EGnckU2wcujP27vL7a5hBY2wJ8RKCBJpcfhiKTh+r0H9oVK/hiw/hUxAvrSGZg yx6xVLd8L5SxB7USZMG+J4PYpqEUZHGZtLDXjGbSzCDmhLyZuFJwrb4cSj39luiMI32d q8Rd48iT12mlH4POPTLANrlyucSNtz2qNclOjf4JK8JfnkPuCBgpXD26eB+yzDfT9KnZ T1h8iQsIu87sht9hkF+xxXJDHfROjii1prFDxAL3gIIDX07hgypsSZ3YW3IabxtLgCAu QOyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=FIdJ1xGlPVT3XyTO3FbCmiLjKsODAgipsiMoqpnDtkc=; b=MWbGSyDwmvU9Zp8BOvQIytsf/evh2JJxNXB03TXBgi7lSRmIWesFganXO+Iir4s+su h9rbhYZI9EBnsP2pvl2st/GXgH5A/eFfomhmZb1ZE1M2IFIYX8JXuUJg14U16BBd2MGo dZ2+l0fpvl28YCyj1AwWMDPYkG7Un7dpTBb7N8atOJmSeN/J6I6s7n+seIABSPcpdaRN 4wYm0MTbSgGmty1UPZHiIM80gzpFl+brwIJnr0L6LkFFlEAe8m1/6JnkClTHxEMfJlh7 1HmK90BljhL9lRnKwF96wPXKet8uYayJdAD1zSyCRiCoVAC4XP9X0Pe+KmOVOUQKcErL 2UnA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 190-20020a6300c7000000b0045fad1c30e6si5390850pga.602.2022.10.25.22.48.11; Tue, 25 Oct 2022 22:48:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbiJZFSi (ORCPT + 99 others); Wed, 26 Oct 2022 01:18:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229629AbiJZFSd (ORCPT ); Wed, 26 Oct 2022 01:18:33 -0400 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F418996B; Tue, 25 Oct 2022 22:18:30 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R611e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VT5nKsG_1666761505; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VT5nKsG_1666761505) by smtp.aliyun-inc.com; Wed, 26 Oct 2022 13:18:26 +0800 From: Yang Li To: ioana.ciornei@nxp.com Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH net-next] net: dpaa2-eth: Simplify bool conversion Date: Wed, 26 Oct 2022 13:18:24 +0800 Message-Id: <20221026051824.38730-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ./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 --- 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