aboutsummaryrefslogtreecommitdiffstats
path: root/net/irda/irttp.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/irttp.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/irttp.c')
-rw-r--r--net/irda/irttp.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/net/irda/irttp.c b/net/irda/irttp.c
index 9d9af4606970..285ccd623ae5 100644
--- a/net/irda/irttp.c
+++ b/net/irda/irttp.c
@@ -350,7 +350,7 @@ static int irttp_param_max_sdu_size(void *instance, irda_param_t *param,
350{ 350{
351 struct tsap_cb *self; 351 struct tsap_cb *self;
352 352
353 self = (struct tsap_cb *) instance; 353 self = instance;
354 354
355 IRDA_ASSERT(self != NULL, return -1;); 355 IRDA_ASSERT(self != NULL, return -1;);
356 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return -1;); 356 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return -1;);
@@ -879,7 +879,7 @@ static int irttp_udata_indication(void *instance, void *sap,
879 879
880 IRDA_DEBUG(4, "%s()\n", __func__); 880 IRDA_DEBUG(4, "%s()\n", __func__);
881 881
882 self = (struct tsap_cb *) instance; 882 self = instance;
883 883
884 IRDA_ASSERT(self != NULL, return -1;); 884 IRDA_ASSERT(self != NULL, return -1;);
885 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return -1;); 885 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return -1;);
@@ -914,7 +914,7 @@ static int irttp_data_indication(void *instance, void *sap,
914 unsigned long flags; 914 unsigned long flags;
915 int n; 915 int n;
916 916
917 self = (struct tsap_cb *) instance; 917 self = instance;
918 918
919 n = skb->data[0] & 0x7f; /* Extract the credits */ 919 n = skb->data[0] & 0x7f; /* Extract the credits */
920 920
@@ -996,7 +996,7 @@ static void irttp_status_indication(void *instance,
996 996
997 IRDA_DEBUG(4, "%s()\n", __func__); 997 IRDA_DEBUG(4, "%s()\n", __func__);
998 998
999 self = (struct tsap_cb *) instance; 999 self = instance;
1000 1000
1001 IRDA_ASSERT(self != NULL, return;); 1001 IRDA_ASSERT(self != NULL, return;);
1002 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;); 1002 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;);
@@ -1025,7 +1025,7 @@ static void irttp_flow_indication(void *instance, void *sap, LOCAL_FLOW flow)
1025{ 1025{
1026 struct tsap_cb *self; 1026 struct tsap_cb *self;
1027 1027
1028 self = (struct tsap_cb *) instance; 1028 self = instance;
1029 1029
1030 IRDA_ASSERT(self != NULL, return;); 1030 IRDA_ASSERT(self != NULL, return;);
1031 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;); 1031 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;);
@@ -1208,7 +1208,7 @@ static void irttp_connect_confirm(void *instance, void *sap,
1208 1208
1209 IRDA_DEBUG(4, "%s()\n", __func__); 1209 IRDA_DEBUG(4, "%s()\n", __func__);
1210 1210
1211 self = (struct tsap_cb *) instance; 1211 self = instance;
1212 1212
1213 IRDA_ASSERT(self != NULL, return;); 1213 IRDA_ASSERT(self != NULL, return;);
1214 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;); 1214 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;);
@@ -1292,13 +1292,13 @@ static void irttp_connect_indication(void *instance, void *sap,
1292 __u8 plen; 1292 __u8 plen;
1293 __u8 n; 1293 __u8 n;
1294 1294
1295 self = (struct tsap_cb *) instance; 1295 self = instance;
1296 1296
1297 IRDA_ASSERT(self != NULL, return;); 1297 IRDA_ASSERT(self != NULL, return;);
1298 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;); 1298 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;);
1299 IRDA_ASSERT(skb != NULL, return;); 1299 IRDA_ASSERT(skb != NULL, return;);
1300 1300
1301 lsap = (struct lsap_cb *) sap; 1301 lsap = sap;
1302 1302
1303 self->max_seg_size = max_seg_size - TTP_HEADER; 1303 self->max_seg_size = max_seg_size - TTP_HEADER;
1304 self->max_header_size = max_header_size+TTP_HEADER; 1304 self->max_header_size = max_header_size+TTP_HEADER;
@@ -1602,7 +1602,7 @@ static void irttp_disconnect_indication(void *instance, void *sap,
1602 1602
1603 IRDA_DEBUG(4, "%s()\n", __func__); 1603 IRDA_DEBUG(4, "%s()\n", __func__);
1604 1604
1605 self = (struct tsap_cb *) instance; 1605 self = instance;
1606 1606
1607 IRDA_ASSERT(self != NULL, return;); 1607 IRDA_ASSERT(self != NULL, return;);
1608 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;); 1608 IRDA_ASSERT(self->magic == TTP_TSAP_MAGIC, return;);