Home
last modified time | relevance | path

Searched hist:"02 f17037" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/damon/
H A Dcore.c02f17037 Tue Sep 13 12:44:30 CDT 2022 SeongJae Park <sj@kernel.org> mm/damon/core: copy struct-to-struct instead of field-to-field in damon_new_scheme()

The function for new 'struct damos' creation, 'damon_new_scheme()', copies
each field of the struct one by one, though it could simply copied via
struct to struct. This commit replaces the unnecessarily verbose
field-to-field copies with struct-to-struct copies to make code simple and
short.

Link: https://lkml.kernel.org/r/20220913174449.50645-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>