]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/sysfs: remove repeat container_of() in damon_sysfs_kdamond_release()
authorXin Hao <xhao@linux.alibaba.com>
Tue, 22 Mar 2022 21:50:00 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:13 +0000 (15:57 -0700)
commit062c7150b9cfb5b3beb9563be58249f2d6568a22
tree59b4bfa0a9fcf0e56f343848d34e5d4db1b605dd
parentba6784ebe58aebe5989ca124b174f8e4a83694d3
mm/damon/sysfs: remove repeat container_of() in damon_sysfs_kdamond_release()

In damon_sysfs_kdamond_release(), we have use container_of() to get
"kdamond" pointer, so there no need to get it once again.

Link: https://lkml.kernel.org/r/20220303075314.22502-1-xhao@linux.alibaba.com
Signed-off-by: Xin Hao <xhao@linux.alibaba.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/sysfs.c