diff options
author | 2022-12-13 16:21:55 -0800 | |
---|---|---|
committer | 2022-12-13 16:21:55 -0800 | |
commit | 4f2c0a4acffbec01079c28f839422e64ddeff004 (patch) | |
tree | 06ada4a8a6d94a94c93944806041b8c994cebfc5 /mm/cma_debug.c | |
parent | lib: zstd: clean up double word in comment. (diff) | |
parent | Linux 6.1 (diff) | |
download | wireguard-linux-4f2c0a4acffbec01079c28f839422e64ddeff004.tar.xz wireguard-linux-4f2c0a4acffbec01079c28f839422e64ddeff004.zip |
Merge branch 'main' into zstd-linus
Diffstat (limited to 'mm/cma_debug.c')
-rw-r--r-- | mm/cma_debug.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mm/cma_debug.c b/mm/cma_debug.c index 2e7704955f4f..602fff89b15f 100644 --- a/mm/cma_debug.c +++ b/mm/cma_debug.c @@ -163,11 +163,8 @@ DEFINE_DEBUGFS_ATTRIBUTE(cma_alloc_fops, NULL, cma_alloc_write, "%llu\n"); static void cma_debugfs_add_one(struct cma *cma, struct dentry *root_dentry) { struct dentry *tmp; - char name[16]; - scnprintf(name, sizeof(name), "cma-%s", cma->name); - - tmp = debugfs_create_dir(name, root_dentry); + tmp = debugfs_create_dir(cma->name, root_dentry); debugfs_create_file("alloc", 0200, tmp, cma, &cma_alloc_fops); debugfs_create_file("free", 0200, tmp, cma, &cma_free_fops); |