mm/damon: remove return value from before_terminate callback
[linux-2.6-microblaze.git] / mm / damon / dbgfs.c
index befb27a..eccc14b 100644 (file)
@@ -645,18 +645,17 @@ static void dbgfs_fill_ctx_dir(struct dentry *dir, struct damon_ctx *ctx)
                debugfs_create_file(file_names[i], 0600, dir, ctx, fops[i]);
 }
 
-static int dbgfs_before_terminate(struct damon_ctx *ctx)
+static void dbgfs_before_terminate(struct damon_ctx *ctx)
 {
        struct damon_target *t, *next;
 
        if (!targetid_is_pid(ctx))
-               return 0;
+               return;
 
        damon_for_each_target_safe(t, next, ctx) {
                put_pid((struct pid *)t->id);
                damon_destroy_target(t);
        }
-       return 0;
 }
 
 static struct damon_ctx *dbgfs_new_ctx(void)