OSDN Git Service

bpf: Remove redundant assignment to meta.seq in __task_seq_show()
authorYuntao Wang <ytcoode@gmail.com>
Sun, 10 Apr 2022 06:00:19 +0000 (14:00 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 11 Apr 2022 19:14:34 +0000 (21:14 +0200)
commitaa1b02e674fe69acd04624f5bcdef94928bc8695
tree4aa39510bcf7c7d45b2c0a726620593ebd958439
parentf4fd706f738338e78f413db36d0a483a11c53cd1
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
kernel/bpf/bpf_iter.c
kernel/bpf/task_iter.c