netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/4] net: Removing useless casts
@ 2006-07-21 13:45 takis
  2006-07-21 22:52 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: takis @ 2006-07-21 13:45 UTC (permalink / raw)
  To: linux-kernel; +Cc: per.liden, netdev

From: Panagiotis Issaris <takis@issaris.org>

Removing useless casts

Signed-off-by: Panagiotis Issaris <takis@issaris.org>
---
 net/tipc/discover.c |    2 +-
 net/tipc/ref.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/tipc/discover.c b/net/tipc/discover.c
index 2b84412..ee94de9 100644
--- a/net/tipc/discover.c
+++ b/net/tipc/discover.c
@@ -295,7 +295,7 @@ struct link_req *tipc_disc_init_link_req
 {
 	struct link_req *req;
 
-	req = (struct link_req *)kmalloc(sizeof(*req), GFP_ATOMIC);
+	req = kmalloc(sizeof(*req), GFP_ATOMIC);
 	if (!req)
 		return NULL;
 
diff --git a/net/tipc/ref.c b/net/tipc/ref.c
index 596d3c8..e6d6ae2 100644
--- a/net/tipc/ref.c
+++ b/net/tipc/ref.c
@@ -79,7 +79,7 @@ int tipc_ref_table_init(u32 requested_si
 	while (sz < requested_size) {
 		sz <<= 1;
 	}
-	table = (struct reference *)vmalloc(sz * sizeof(struct reference));
+	table = vmalloc(sz * sizeof(*table));
 	if (table == NULL)
 		return -ENOMEM;
 
-- 
1.4.2.rc1.ge7a0-dirty


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/4] net: Removing useless casts
  2006-07-21 13:45 [PATCH 1/4] net: Removing useless casts takis
@ 2006-07-21 22:52 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2006-07-21 22:52 UTC (permalink / raw)
  To: takis; +Cc: linux-kernel, per.liden, netdev

From: takis@issaris.org
Date: Fri, 21 Jul 2006 15:45:50 +0200

> From: Panagiotis Issaris <takis@issaris.org>
> 
> Removing useless casts
> 
> Signed-off-by: Panagiotis Issaris <takis@issaris.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-07-21 22:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-21 13:45 [PATCH 1/4] net: Removing useless casts takis
2006-07-21 22:52 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).