diff options
| author | Vincent Mailhol <mailhol@kernel.org> | 2026-07-14 20:18:02 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-07-15 07:15:26 +0200 |
| commit | 1ead62bc1bd7f48bc7d4d107769fb991f6f3961c (patch) | |
| tree | f1ad0cf132c2adc8a6a925a06d2a284246a2b624 /include/linux | |
| parent | f810b41defc44535715afa978dbcba8b3b9b9d99 (diff) | |
| download | linux-next-1ead62bc1bd7f48bc7d4d107769fb991f6f3961c.tar.gz linux-next-1ead62bc1bd7f48bc7d4d107769fb991f6f3961c.zip | |
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>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/container_of.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/container_of.h b/include/linux/container_of.h index 28500a62ab7e..68153170db32 100644 --- a/include/linux/container_of.h +++ b/include/linux/container_of.h @@ -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 |
