lkml.org 
[lkml]   [2009]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 29/56] irda: Remove void casts
Date
Remove uneeded void casts

Signed-Off-By: Jack Stone <jwjstone@fastmail.fm>
---
net/irda/discovery.c | 4 ++--
net/irda/ircomm/ircomm_lmp.c | 2 +-
net/irda/iriap.c | 2 +-
net/irda/irnet/irnet_irda.c | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/net/irda/discovery.c b/net/irda/discovery.c
index a6f99b5..7fdc346 100644
--- a/net/irda/discovery.c
+++ b/net/irda/discovery.c
@@ -130,11 +130,11 @@ void irlmp_add_discovery_log(hashbin_t *cachelog, hashbin_t *log)
* no need to lock it.
* We just need to lock the global log in irlmp_add_discovery().
*/
- discovery = (discovery_t *) hashbin_remove_first(log);
+ discovery = hashbin_remove_first(log);
while (discovery != NULL) {
irlmp_add_discovery(cachelog, discovery);

- discovery = (discovery_t *) hashbin_remove_first(log);
+ discovery = hashbin_remove_first(log);
}

/* Delete the now empty log */
diff --git a/net/irda/ircomm/ircomm_lmp.c b/net/irda/ircomm/ircomm_lmp.c
index 67c99d2..6245b45 100644
--- a/net/irda/ircomm/ircomm_lmp.c
+++ b/net/irda/ircomm/ircomm_lmp.c
@@ -152,7 +152,7 @@ static void ircomm_lmp_flow_control(struct sk_buff *skb)

line = cb->line;

- self = (struct ircomm_cb *) hashbin_lock_find(ircomm, line, NULL);
+ self = hashbin_lock_find(ircomm, line, NULL);
if (!self) {
IRDA_DEBUG(2, "%s(), didn't find myself\n", __func__ );
return;
diff --git a/net/irda/iriap.c b/net/irda/iriap.c
index 4a105dc..12cb0e9 100644
--- a/net/irda/iriap.c
+++ b/net/irda/iriap.c
@@ -251,7 +251,7 @@ void iriap_close(struct iriap_cb *self)
self->lsap = NULL;
}

- entry = (struct iriap_cb *) hashbin_remove(iriap, (long) self, NULL);
+ entry = hashbin_remove(iriap, (long) self, NULL);
IRDA_ASSERT(entry == self, return;);

__iriap_close(self);
diff --git a/net/irda/irnet/irnet_irda.c b/net/irda/irnet/irnet_irda.c
index cf9a4b5..213f207 100644
--- a/net/irda/irnet/irnet_irda.c
+++ b/net/irda/irnet/irnet_irda.c
@@ -766,7 +766,7 @@ irnet_find_socket(irnet_socket * self)
* requested that nickname */
if(err == 0)
{
- new = (irnet_socket *) hashbin_find(irnet_server.list,
+ new = hashbin_find(irnet_server.list,
0, self->rname);
if(new)
DEBUG(IRDA_SERV_INFO, "Socket 0x%p matches rname ``%s''.\n",
--
1.5.4.3


\
 
 \ /
  Last update: 2009-04-08 13:55    [W:0.410 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site