]> git.baikalelectronics.ru Git - kernel.git/commit
rocker: Simplify the calculation of variables
authorJiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Tue, 26 Jan 2021 08:13:03 +0000 (16:13 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Jan 2021 01:35:48 +0000 (17:35 -0800)
commitb83df09b95e55714868daf0e383268bca0f186d0
treeed70e6128f14cf198dccabcb522cb65ec9b1e9d4
parentb7e76a8d2a6de85c039e1781700d9f943d16d80c
rocker: Simplify the calculation of variables

Fix the following coccicheck warnings:

./drivers/net/ethernet/rocker/rocker_ofdpa.c:926:34-36: WARNING !A || A
&& B is equivalent to !A || B.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Link: https://lore.kernel.org/r/1611648783-3916-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/rocker/rocker_ofdpa.c