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:
Vincent Mailhol 2026-07-14 20:18:02 +02:00 committed by Greg Kroah-Hartman
parent f810b41def
commit 1ead62bc1b

View File

@ -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