Commit 3b87251
bpf: Simplify assignment to struct bpf_insn pointer in do_misc_fixups()
In verifier.c, the following code patterns (in two places)
struct bpf_insn *patch = &insn_buf[0];
can be simplified to
struct bpf_insn *patch = insn_buf;
which is easier to understand.
Acked-by: Eduard Zingerman <[email protected]>
Signed-off-by: Yonghong Song <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>1 parent 0325472 commit 3b87251
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22103 | 22103 | | |
22104 | 22104 | | |
22105 | 22105 | | |
22106 | | - | |
| 22106 | + | |
22107 | 22107 | | |
22108 | 22108 | | |
22109 | 22109 | | |
| |||
22154 | 22154 | | |
22155 | 22155 | | |
22156 | 22156 | | |
22157 | | - | |
| 22157 | + | |
22158 | 22158 | | |
22159 | 22159 | | |
22160 | 22160 | | |
| |||
0 commit comments