Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp170274pxb; Tue, 2 Feb 2021 02:05:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyVFwA10qRBfcKvyFq7V2TNjLQvFm4dRpJzfQ+cg1xqD6fVRpZhxui+hyDWDWZqtag0TygP X-Received: by 2002:a17:906:f0d7:: with SMTP id dk23mr21635723ejb.131.1612260335959; Tue, 02 Feb 2021 02:05:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612260335; cv=none; d=google.com; s=arc-20160816; b=GsD+CCIu5BAjr4gBJCbkrSzOqMUJliZMuOHflLplg0CW2lYYRkH8LLviyOi1EsCtEt DQijjNQKCn2638ZO4xfrIXU8qBsEDm1oJGb1QcHcVmTDIGG4xWE++Ya87cxEffaDFapq eOcnKWMvf2Y4twyIADM9nHWU/Vl/O+wZP9UxZCFmGmuIbfwiBaF/s/R9aG3YGwusUyea VGNq7Tk2NRfcemWPz/zONVy+MMVdJyRLcq4iw1wVgp5lMBtNpelP47ztchCtLjgrFN36 d+N8YRg7Daip40qRz1C9eOnb2dvOAA7ZumH5xPTm6F/EGxV1IpL/plsfbwGqSaXduoKR nOGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ZvoXdA4xeUHahkx5qtOyGj9hJNYuMIjGixwFBRDbiM8=; b=qZ6rVsMV2ea6BuqQTrkM7+c24Q+g9aFP8H7mfmgg90TGmuUrQUBoq5nf0d+gzesEPO KBGnKf5zpHsJwXmTk205cKkEmAtM26uiEoLexESQlOEauksANLt2MjiRIgbQHf1Mrt/k Zs1eHlrvdzKkGMTh1GgQd/XJlBuiNIejBktCs8mn+1y4NJBt6i/WPl4ydJxcjr0u1jQ/ XpPcUv9vH9r8+Dms3es6wtubwdG6kUynAshErW9zQY3hT/Xs+t+2wJ0i+PfI8riw/hst 5+yP3fDng4E8mrpY+jxKflYQf/MkaX4bRvDBLUOypHd1BTPXN0iV15V1a4Fy/GkYVSPq mssg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p24si12880768edw.475.2021.02.02.02.05.11; Tue, 02 Feb 2021 02:05:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229889AbhBBKEW (ORCPT + 99 others); Tue, 2 Feb 2021 05:04:22 -0500 Received: from out30-43.freemail.mail.aliyun.com ([115.124.30.43]:46032 "EHLO out30-43.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229542AbhBBKEG (ORCPT ); Tue, 2 Feb 2021 05:04:06 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R931e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04423;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=17;SR=0;TI=SMTPD_---0UNfeGFu_1612260158; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UNfeGFu_1612260158) by smtp.aliyun-inc.com(127.0.0.1); Tue, 02 Feb 2021 18:02:51 +0800 From: Jiapeng Chong To: ioana.ciornei@nxp.com Cc: ruxandra.radulescu@nxp.com, davem@davemloft.net, linux@armlinux.org.uk, ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org, john.fastabend@gmail.com, andrii@kernel.org, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, kpsingh@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, Jiapeng Chong Subject: [PATCH] dpaa2-eth: Simplify the calculation of variables Date: Tue, 2 Feb 2021 18:02:37 +0800 Message-Id: <1612260157-128026-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warnings: ./drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c:1651:36-38: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c index fb0bcd1..93f84c9 100644 --- a/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c +++ b/drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c @@ -1648,7 +1648,7 @@ void dpaa2_eth_set_rx_taildrop(struct dpaa2_eth_priv *priv, * CG taildrop threshold, so it won't interfere with it; we also * want frames in non-PFC enabled traffic classes to be kept in check) */ - td.enable = !tx_pause || (tx_pause && pfc); + td.enable = !tx_pause || pfc; if (priv->rx_cgtd_enabled == td.enable) return; -- 1.8.3.1