mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 06:44:00 -04:00
powerpc: Use NULL instead of 0 for null pointers
Sparse reports several uses of 0 for pointer arguments and comparisons. Replace with NULL to better convey the intent. Remove entirely if a comparison to follow the kernel style of implicit boolean conversions. Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20231011053711.93427-5-bgray@linux.ibm.com
This commit is contained in:
committed by
Michael Ellerman
parent
340a60e372
commit
ddfb7d9db8
@@ -146,9 +146,9 @@ struct bpf_prog *bpf_int_jit_compile(struct bpf_prog *fp)
|
||||
* update ctgtx.idx as it pretends to output instructions, then we can
|
||||
* calculate total size from idx.
|
||||
*/
|
||||
bpf_jit_build_prologue(0, &cgctx);
|
||||
bpf_jit_build_prologue(NULL, &cgctx);
|
||||
addrs[fp->len] = cgctx.idx * 4;
|
||||
bpf_jit_build_epilogue(0, &cgctx);
|
||||
bpf_jit_build_epilogue(NULL, &cgctx);
|
||||
|
||||
fixup_len = fp->aux->num_exentries * BPF_FIXUP_LEN * 4;
|
||||
extable_len = fp->aux->num_exentries * sizeof(struct exception_table_entry);
|
||||
|
||||
Reference in New Issue
Block a user