HomeFreeBSD

Cleanup: Remove unnecessary explicit casts of pointers from allocators

Description

Cleanup: Remove unnecessary explicit casts of pointers from allocators

The Linux 5.16.14 kernel's coccicheck caught these. The semantic patch
that caught them was:

./scripts/coccinelle/api/alloc/alloc_cast.cocci

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14372

Details

Provenance
Richard Yao <richard.yao@alumni.stonybrook.edu>Authored on Jan 10 2023, 7:03 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 12 2023, 11:59 PM
Parents
rG80d64bb85fcf: change how d_alias is replaced by du.d_alias
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG7384ec65cd6b: Cleanup: Remove unnecessary explicit casts of pointers from allocators (authored by Richard Yao <richard.yao@alumni.stonybrook.edu>).Jan 12 2023, 11:59 PM