staging: netlogic: Drop unneeded void pointer cast
Void pointers need not be cast to other pointer types. Semantic patch used: @r@ expression x; void* e; type T; identifier f; @@ ( *((T *)e) | ((T *)x) [...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
b6725b058d
Коммит
62e259ed54
|
@ -130,7 +130,7 @@ static void xlr_net_fmn_handler(int bkt, int src_stnid, int size, int code,
|
|||
struct xlr_net_priv *priv;
|
||||
u32 port, length;
|
||||
unsigned char *addr;
|
||||
struct xlr_adapter *adapter = (struct xlr_adapter *)arg;
|
||||
struct xlr_adapter *adapter = arg;
|
||||
|
||||
length = (msg->msg0 >> 40) & 0x3fff;
|
||||
if (length == 0) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче