diff options
author | 2022-09-01 20:00:26 +0800 | |
---|---|---|
committer | 2022-09-11 20:26:09 -0700 | |
commit | 12658abfc59ddf2ed176fce461e83f392ff18e5b (patch) | |
tree | b34911a69de1dfb909086e5e29604042771d5ed6 /include/linux/sched.h | |
parent | hugetlb: use helper {huge_pte|pmd}_lock() (diff) | |
download | wireguard-linux-12658abfc59ddf2ed176fce461e83f392ff18e5b.tar.xz wireguard-linux-12658abfc59ddf2ed176fce461e83f392ff18e5b.zip |
hugetlb: pass NULL to kobj_to_hstate() if nid is unused
We can pass NULL to kobj_to_hstate() directly when nid is unused to
simplify the code. No functional change intended.
Link: https://lkml.kernel.org/r/20220901120030.63318-7-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/sched.h')
0 files changed, 0 insertions, 0 deletions