Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
linux/container_of.h: Remove unnecessary cast
Casts are dangerous. Moreover, (almost) everything converts to 'void *' implicitly, with the exception of pointers to const. Change the temporary to be const, and therefore allow implicit conversion from everything. Since we don't modify it, this also adds safety. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
- Loading branch information