diff options
| author | SeongJae Park <[email protected]> | 2022-09-13 17:44:30 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-10-03 14:03:10 -0700 |
| commit | 02f17037fc6e38ca1c00ac87a112372a3867ba45 (patch) | |
| tree | bcbe406556a42562bb411fdab90d76a44509920c /tools/perf/scripts/python | |
| parent | 8193321ac90d525b33815c77faae7d2d12042c03 (diff) | |
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/[email protected]
Signed-off-by: SeongJae Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions