The type of sysinit's member udata is const void *, it is perfect valid to do implicit type casting from other pointer types, so no need for the intermediate type casting to void *.
MFC after: 1 week
Differential D47945
sys/sys/kernel.h: Remove intermediate type casting zlei on Fri, Dec 6, 5:54 PM. Authored by Tags None Referenced Files
Subscribers None
Details
Diff Detail
Event TimelineComment Actions For the udata part, I agree. For the func, IMO the goal of changes, if any, should be the removal of any casts. Perhaps consumers should explicitly use C_SYSINIT if they need a const arg.
|