mm/cma_debug.c: remove static scoped cma_debugfs_root
authorYue Hu <[email protected]>
Tue, 5 Mar 2019 23:49:27 +0000 (15:49 -0800)
committerLinus Torvalds <[email protected]>
Wed, 6 Mar 2019 05:07:20 +0000 (21:07 -0800)
commit5a7f1b2f2fbeb40c735639c9a86910d86fd5ec41
tree54236e14fb6347f320a7122cae1e30cdc4b6f69e
parenta33228682c2039f086823ac798242734ec0eb4e5
mm/cma_debug.c: remove static scoped cma_debugfs_root

Currently cma_debugfs_root is static storage.  That is unnecessary since
it will be only used by next cma_debugfs_add_one().  We can just pass it
to following calling to save thisspace.  Also remove useless idx
parameter.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Yue Hu <[email protected]>
Reviewed-by: Andrew Morton <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: David Rientjes <[email protected]>
Cc: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/cma_debug.c