Skip to content

Commit 4cc2048

Browse files
Avenger-285714Alexei Starovoitov
authored and
Alexei Starovoitov
committed
bpf, docs: Fix non-standard line break
Even though the kernel's coding-style document does not explicitly state this, we generally put a newline after the semicolon of every C language statement to enhance code readability. Adjust the placement of newlines to adhere to this convention. Reported-by: Chen Linxuan <[email protected]> Signed-off-by: WangYuli <[email protected]> Reviewed-by: Yanteng Si <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 60400cd commit 4cc2048

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/bpf/bpf_iterators.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ Now, in the userspace program, pass the pointer of struct to the
323323

324324
::
325325

326-
link = bpf_program__attach_iter(prog, &opts); iter_fd =
327-
bpf_iter_create(bpf_link__fd(link));
326+
link = bpf_program__attach_iter(prog, &opts);
327+
iter_fd = bpf_iter_create(bpf_link__fd(link));
328328

329329
If both *tid* and *pid* are zero, an iterator created from this struct
330330
``bpf_iter_attach_opts`` will include every opened file of every task in the

0 commit comments

Comments
 (0)