net: Remove casts of void *
Unnecessary casts of void * clutter the code. These are the remainder casts after several specific patches to remove netdev_priv and dev_priv. Done via coccinelle script: $ cat cast_void_pointer.cocci @@ type T; T *pt; void *pv; @@ - pt = (T *)pv; + pt = pv; Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Paul Moore <paul.moore@hp.com> Signed-off-by: David S. Miller <davem@conan.davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
3c8def9776
commit
ea11073387
@@ -317,8 +317,8 @@ static void irlan_connect_indication(void *instance, void *sap,
|
||||
|
||||
IRDA_DEBUG(2, "%s()\n", __func__ );
|
||||
|
||||
self = (struct irlan_cb *) instance;
|
||||
tsap = (struct tsap_cb *) sap;
|
||||
self = instance;
|
||||
tsap = sap;
|
||||
|
||||
IRDA_ASSERT(self != NULL, return;);
|
||||
IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;);
|
||||
@@ -361,7 +361,7 @@ static void irlan_connect_confirm(void *instance, void *sap,
|
||||
{
|
||||
struct irlan_cb *self;
|
||||
|
||||
self = (struct irlan_cb *) instance;
|
||||
self = instance;
|
||||
|
||||
IRDA_ASSERT(self != NULL, return;);
|
||||
IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;);
|
||||
@@ -406,8 +406,8 @@ static void irlan_disconnect_indication(void *instance,
|
||||
|
||||
IRDA_DEBUG(0, "%s(), reason=%d\n", __func__ , reason);
|
||||
|
||||
self = (struct irlan_cb *) instance;
|
||||
tsap = (struct tsap_cb *) sap;
|
||||
self = instance;
|
||||
tsap = sap;
|
||||
|
||||
IRDA_ASSERT(self != NULL, return;);
|
||||
IRDA_ASSERT(self->magic == IRLAN_MAGIC, return;);
|
||||
|
Reference in New Issue
Block a user