aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYixuan Cao <[email protected]>2022-03-24 18:08:53 -0700
committerLinus Torvalds <[email protected]>2022-03-24 19:06:44 -0700
commit41ed64347b5db8f6c9359d4f87f768db1a83bd79 (patch)
tree83f0f60b2b7fb8014e9f53a65f213af455d4e974
parente7a3f6776905b4e0b61692add3d0808315379c89 (diff)
tools/vm/page_owner_sort.c: delete invalid duplicate code
I noticed that there is two invalid lines of duplicate code. It's better to delete it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Yixuan Cao <[email protected]> Cc: Mark Brown <[email protected]> Cc: Sean Anderson <[email protected]> Cc: Zhenliang Wei <[email protected]> Cc: Tang Bin <[email protected]> Cc: Yinan Zhang <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--tools/vm/page_owner_sort.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/vm/page_owner_sort.c b/tools/vm/page_owner_sort.c
index 284a5070402c..c8ec2d6b314d 100644
--- a/tools/vm/page_owner_sort.c
+++ b/tools/vm/page_owner_sort.c
@@ -227,8 +227,6 @@ static void add_list(char *buf, int len)
list[list_size].pid = get_pid(buf);
list[list_size].ts_nsec = get_ts_nsec(buf);
list[list_size].free_ts_nsec = get_free_ts_nsec(buf);
- memcpy(list[list_size].txt, buf, len);
- list[list_size].txt[len] = 0;
list_size++;
if (list_size % 1000 == 0) {
printf("loaded %d\r", list_size);