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)
commite93fac3b51617401df46332499daae000e322ff8
treea19efb93895b88962f969f362a50b6b7368cb002
parent493007c1fa8902b9a211532c2849dbfbeec18f7e
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