]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/core: nullify pointer ctx->kdamond with a NULL
authorColin Ian King <colin.king@canonical.com>
Fri, 5 Nov 2021 20:46:15 +0000 (13:46 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 6 Nov 2021 20:30:44 +0000 (13:30 -0700)
commit909a731e74dfc267c72d44687b8eaed7872fa1ff
tree58fd391978b4f6bcdfd29e54adc1cbb1fd656f75
parent8bab767bc22489d8f51eecb879c27cafc2036f05
mm/damon/core: nullify pointer ctx->kdamond with a NULL

Currently a plain integer is being used to nullify the pointer
ctx->kdamond.  Use NULL instead.  Cleans up sparse warning:

  mm/damon/core.c:317:40: warning: Using plain integer as NULL pointer

Link: https://lkml.kernel.org/r/20210925215908.181226-1-colin.king@canonical.com
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/damon/core.c