]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: xen-netfront: Simplify the calculation of variables
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Tue, 2 Feb 2021 10:17:49 +0000 (18:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 18:55:24 +0000 (10:55 -0800)
commita110194772298a5a8d6d3ff6cefc1ac0d2f3d06c
treea19efb93895b88962f969f362a50b6b7368cb002
parent9876d832721ca062aee8bbe8e19f62d336719160
drivers: net: xen-netfront: Simplify the calculation of variables

Fix the following coccicheck warnings:

./drivers/net/xen-netfront.c:1816:52-54: 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>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/1612261069-13315-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/xen-netfront.c