Commit aa1b02e6 authored by Yuntao Wang's avatar Yuntao Wang Committed by Daniel Borkmann

bpf: Remove redundant assignment to meta.seq in __task_seq_show()

The seq argument is assigned to meta.seq twice, the second one is
redundant, remove it.

This patch also removes a redundant space in bpf_iter_link_attach().
Signed-off-by: default avatarYuntao Wang <ytcoode@gmail.com>
Signed-off-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Acked-by: default avatarSong Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20220410060020.307283-1-ytcoode@gmail.com
parent f4fd706f
...@@ -99,7 +99,6 @@ static int __task_seq_show(struct seq_file *seq, struct task_struct *task, ...@@ -99,7 +99,6 @@ static int __task_seq_show(struct seq_file *seq, struct task_struct *task,
if (!prog) if (!prog)
return 0; return 0;
meta.seq = seq;
ctx.meta = &meta; ctx.meta = &meta;
ctx.task = task; ctx.task = task;
return bpf_iter_run_prog(prog, &ctx); return bpf_iter_run_prog(prog, &ctx);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment