|
From: | Markus Armbruster |
Subject: | Re: [PATCH v3 2/3] various: Remove unnecessary OBJECT() cast |
Date: | Fri, 15 May 2020 06:38:57 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Philippe Mathieu-Daudé <address@hidden> writes: > The OBJECT() macro is defined as: > > #define OBJECT(obj) ((Object *)(obj)) > > Remove the unnecessary OBJECT() casts when we already know the > pointer is of Object type. > > Patch created mechanically using spatch with this script: > > @@ > typedef Object; > Object *o; > @@ > - OBJECT(o) > + o > > Acked-by: Cornelia Huck <address@hidden> > Acked-by: Corey Minyard <address@hidden> > Acked-by: John Snow <address@hidden> > Reviewed-by: Richard Henderson <address@hidden> > Signed-off-by: Philippe Mathieu-Daudé <address@hidden> Reviewed-by: Markus Armbruster <address@hidden>
[Prev in Thread] | Current Thread | [Next in Thread] |