]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb: simplify the calculation of variables
authorJiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Wed, 24 Feb 2021 20:07:09 +0000 (12:07 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Feb 2021 21:38:32 +0000 (13:38 -0800)
commit0aadf7f703582b0b7f4b2486af92f3aaad39b353
treef4f658b751d1aebc7b586a8821b9c74163081d3d
parentb6e2c39b6ab53c9648c2589d05f274d7918d0cec
mm/hugetlb: simplify the calculation of variables

Fix the following coccicheck warnings:

  mm/hugetlb.c:3372:20-22: WARNING !A || A && B is equivalent to !A || B.

Link: https://lkml.kernel.org/r/1611643468-52233-1-git-send-email-abaci-bugfix@linux.alibaba.com
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Reviewed-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c