Hi,
Thanks for your patch. Your patch is obviously correct however I actually
prefer to have the type casts in place because it clearly shows what the
variable type being assigned to is so I find it makes the code more readable to
cast void pointers to the target variable type so I don't have
This patch removes the cast on data of type void * as it is not needed.
The following Coccinelle semantic patch was used for making the change:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Signed-off-by: Himangi Saraogi
Acke
2 matches
Mail list logo