OSDN Git Service

dpaa2-eth: Simplify the calculation of variables
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 2 Feb 2021 10:02:37 +0000 (18:02 +0800)
committerJakub Kicinski <kuba@kernel.org>
Sat, 6 Feb 2021 18:37:37 +0000 (10:37 -0800)
commitb91b3a211542bcd69532a8004452d83f499d23cd
tree5d8064685903fa663fc36157124d2b73df2e35b9
parentc90597bdebb5ff8d410edd8c556a6b5195503ca5
dpaa2-eth: Simplify the calculation of variables

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 <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://lore.kernel.org/r/1612260157-128026-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c