net: Simplify the calculation of variables
authorJiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Mon, 25 Jan 2021 06:41:46 +0000 (14:41 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 27 Jan 2021 10:49:55 +0000 (11:49 +0100)
commit0c87b1ac604518a0d3f527080c6883d5c2402fb4
tree0e002bd1f9036dcc1d985ab51b8af17f553d6804
parent18f976960bca0c32c5a072a2e003a99c156268bc
net: Simplify the calculation of variables

Fix the following coccicheck warnings:

 ./net/ipv4/esp4_offload.c:288:32-34: 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>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/ipv4/esp4_offload.c