]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb: remove unnecessary 'NULL' values from pointer
authorXU pengfei <xupengfei@nfschina.com>
Wed, 14 Sep 2022 01:21:14 +0000 (09:21 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:15 +0000 (14:03 -0700)
commitedeb9e2ee5df7e0a4a31ad83d27f5201a50d00f8
tree04398eb78c6b4e3c74233f425eeececa0eabdfff
parenteb4c9c07f694a17ef87d82ba9d7b752b85029923
mm/hugetlb: remove unnecessary 'NULL' values from pointer

Pointer variables allocate memory first, and then judge.  There is no need
to initialize the assignment.

Link: https://lkml.kernel.org/r/20220914012113.6271-1-xupengfei@nfschina.com
Signed-off-by: XU pengfei <xupengfei@nfschina.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Mike Kravetz <mike.kravetz@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/hugetlb.c