Re: [PATCH v2] net: Simplify the calculation of variables

2021-01-28 Thread Steffen Klassert
On Mon, Jan 25, 2021 at 02:41:46PM +0800, Jiapeng Zhong wrote: > 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 > Signed-off-by: Jiapeng Zhong Patch applied, thanks!

[PATCH v2] net: Simplify the calculation of variables

2021-01-24 Thread Jiapeng Zhong
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 Signed-off-by: Jiapeng Zhong --- Changes in v2: -Drop the parenthesis around !skb_is_gso(skb) now. net/ipv4/esp4_offload.c | 2 +- 1 file chan