aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/iriap.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2011-06-13 12:21:26 -0400
committerDavid S. Miller <davem@conan.davemloft.net>2011-06-16 23:19:27 -0400
commitea110733874d5176cb56dcf612a629ffac09dbf0 (patch)
treed079bb9990ecf7dadc326b62605fb4de1f6fad4f /net/irda/iriap.c
parent3c8def9776c3d4636291432522ea312f7a44be95 (diff)
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>
Diffstat (limited to 'net/irda/iriap.c')
-rw-r--r--net/irda/iriap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/irda/iriap.c b/net/irda/iriap.c
index 36477538cea8..dfc7b47d48fe 100644
--- a/net/irda/iriap.c
+++ b/net/irda/iriap.c
@@ -300,7 +300,7 @@ static void iriap_disconnect_indication(void *instance, void *sap,
300 300
301 IRDA_DEBUG(4, "%s(), reason=%s\n", __func__, irlmp_reasons[reason]); 301 IRDA_DEBUG(4, "%s(), reason=%s\n", __func__, irlmp_reasons[reason]);
302 302
303 self = (struct iriap_cb *) instance; 303 self = instance;
304 304
305 IRDA_ASSERT(self != NULL, return;); 305 IRDA_ASSERT(self != NULL, return;);
306 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); 306 IRDA_ASSERT(self->magic == IAS_MAGIC, return;);
@@ -754,7 +754,7 @@ static void iriap_connect_confirm(void *instance, void *sap,
754{ 754{
755 struct iriap_cb *self; 755 struct iriap_cb *self;
756 756
757 self = (struct iriap_cb *) instance; 757 self = instance;
758 758
759 IRDA_ASSERT(self != NULL, return;); 759 IRDA_ASSERT(self != NULL, return;);
760 IRDA_ASSERT(self->magic == IAS_MAGIC, return;); 760 IRDA_ASSERT(self->magic == IAS_MAGIC, return;);
@@ -786,7 +786,7 @@ static void iriap_connect_indication(void *instance, void *sap,
786 786
787 IRDA_DEBUG(1, "%s()\n", __func__); 787 IRDA_DEBUG(1, "%s()\n", __func__);
788 788
789 self = (struct iriap_cb *) instance; 789 self = instance;
790 790
791 IRDA_ASSERT(skb != NULL, return;); 791 IRDA_ASSERT(skb != NULL, return;);
792 IRDA_ASSERT(self != NULL, goto out;); 792 IRDA_ASSERT(self != NULL, goto out;);
@@ -834,7 +834,7 @@ static int iriap_data_indication(void *instance, void *sap,
834 834
835 IRDA_DEBUG(3, "%s()\n", __func__); 835 IRDA_DEBUG(3, "%s()\n", __func__);
836 836
837 self = (struct iriap_cb *) instance; 837 self = instance;
838 838
839 IRDA_ASSERT(skb != NULL, return 0;); 839 IRDA_ASSERT(skb != NULL, return 0;);
840 IRDA_ASSERT(self != NULL, goto out;); 840 IRDA_ASSERT(self != NULL, goto out;);