diff options
author | Baolin Wang <[email protected]> | 2022-03-22 14:48:43 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2022-03-22 15:57:12 -0700 |
commit | 242e10a09f2637f61356a739ea9ed69235a47ce5 (patch) | |
tree | 3bdee14c010d58ba826bb348fcd89b1e53102ffb /lib/test_fortify/write_overflow-strlcpy-src.c | |
parent | 1971bd630452e943380429336a851c55b027eed1 (diff) |
mm/damon: remove redundant page validation
It will never get a NULL page by pte_page() as discussed in thread [1],
thus remove the redundant page validation to fix below Smatch static
checker warning.
mm/damon/vaddr.c:405 damon_hugetlb_mkold()
warn: 'page' can't be NULL.
[1] https://lore.kernel.org/linux-mm/20220106091200.GA14564@kili/
Link: https://lkml.kernel.org/r/6d32f7d201b8970d53f51b6c5717d472aed2987c.1642386715.git.baolin.wang@linux.alibaba.com
Signed-off-by: Baolin Wang <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Reviewed-by: SeongJae Park <[email protected]>
Acked-by: David Rientjes <[email protected]>
Acked-by: Souptick Joarder <[email protected]>
Reviewed-by: Miaohe Lin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions