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: Yuntao Wang <ytcoode@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Acked-by: Song Liu <songliubraving@fb.com> Link: https://lore.kernel.org/bpf/20220410060020.307283-1-ytcoode@gmail.com
This commit is contained in:
parent
f4fd706f73
commit
aa1b02e674
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user