mirror of
https://github.com/torvalds/linux.git
synced 2026-09-22 12:44:03 +02:00
container_of: remove useless pair of parentheses
The last expression in container_of() doesn't need an extra pair of parenthesis. Remove it. Signed-off-by: Vincent Mailhol <mailhol@kernel.org> Link: https://patch.msgid.link/20260714-containerof_refactor-v1-2-b5c31164d2ad@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f810b41def
commit
1ead62bc1b
|
|
@ -21,7 +21,7 @@
|
|||
static_assert(__same_type(*(ptr), typeof_member(type, member)) || \
|
||||
__same_type(*(ptr), void), \
|
||||
"pointer type mismatch in container_of()"); \
|
||||
((type *)(__mptr - offsetof(type, member))); })
|
||||
(type *)(__mptr - offsetof(type, member)); })
|
||||
|
||||
/**
|
||||
* container_of_const - cast a member of a structure out to the containing
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user