Tag: 4375cad941ee9cc8f7c2a467464cd29ec3d9abd1

staging: wilc1000: wilc_wfi_cfgoperations: remove cast on void pointers

Author: Alison Schofield <amsfield22@gmail.com> Remove cast on void pointers. C programming language guarantees the conversion from void pointer to any other pointer type. Coccinelle patch: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x)[…] | ((T *)x)->f | – (T *) e ) Signed-off-by: Alison Schofield Signed-off-by: Greg …

Continue reading