Skip to content

Commit 7ec1992

Browse files
Colin Ian Kingtorvalds
authored andcommitted
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/[email protected] Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: SeongJae Park <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 42e4cef commit 7ec1992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/damon/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ static int __damon_start(struct damon_ctx *ctx)
314314
nr_running_ctxs);
315315
if (IS_ERR(ctx->kdamond)) {
316316
err = PTR_ERR(ctx->kdamond);
317-
ctx->kdamond = 0;
317+
ctx->kdamond = NULL;
318318
}
319319
}
320320
mutex_unlock(&ctx->kdamond_lock);

0 commit comments

Comments
 (0)