Re: [PATCH] mm/hugetlb: Simplify the calculation of variables

2021-01-26 Thread Mike Kravetz
On 1/25/21 10:44 PM, Jiapeng Zhong wrote: > Fix the following coccicheck warnings: > > ./mm/hugetlb.c:3372:20-22: WARNING !A || A && B is equivalent to > !A || B. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Zhong > --- > mm/hugetlb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 delet

[PATCH] mm/hugetlb: Simplify the calculation of variables

2021-01-26 Thread Jiapeng Zhong
Fix the following coccicheck warnings: ./mm/hugetlb.c:3372:20-22: WARNING !A || A && B is equivalent to !A || B. Reported-by: Abaci Robot Signed-off-by: Jiapeng Zhong --- mm/hugetlb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/hugetlb.c b/mm/hugetlb.c index cbf32d

Re: [PATCH] mm/hugetlb: Simplify the calculation of variables

2021-01-26 Thread Miaohe Lin
Hi: On 2021/1/26 14:44, Jiapeng Zhong wrote: > Fix the following coccicheck warnings: > > ./mm/hugetlb.c:3372:20-22: WARNING !A || A && B is equivalent to > !A || B. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Zhong > --- > mm/hugetlb.c | 3 +-- > 1 file changed, 1 insertion(+), 2 de