netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: takis@issaris.org
To: linux-kernel@vger.kernel.og
Cc: per.liden@ericsson.com, netdev@vger.kernel.org
Subject: [PATCH 1/4] net: Removing useless casts
Date: Fri, 21 Jul 2006 15:45:50 +0200	[thread overview]
Message-ID: <20060721134550.GA27097@issaris.org> (raw)

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


             reply	other threads:[~2006-07-21 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-21 13:45 takis [this message]
2006-07-21 22:52 ` [PATCH 1/4] net: Removing useless casts David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060721134550.GA27097@issaris.org \
    --to=takis@issaris.org \
    --cc=linux-kernel@vger.kernel.og \
    --cc=netdev@vger.kernel.org \
    --cc=per.liden@ericsson.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).