summaryrefslogtreecommitdiffstats
path: root/net/tipc/ref.c
diff options
context:
space:
mode:
authorPanagiotis Issaris <takis@issaris.org>2006-07-21 15:52:20 -0700
committerDavid S. Miller <davem@davemloft.net>2006-07-21 15:52:20 -0700
commit9df3f3d28bca0157e2bab2f3171d2ad4f0930634 (patch)
treeb7cc30698bd9e30846bdce547115ad409ef3d97f /net/tipc/ref.c
parent8265abc082d2283b4ef20237efadb71c6f16ed0c (diff)
downloadblackbird-op-linux-9df3f3d28bca0157e2bab2f3171d2ad4f0930634.tar.gz
blackbird-op-linux-9df3f3d28bca0157e2bab2f3171d2ad4f0930634.zip
[TIPC]: Removing useless casts
Removing useless casts Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/ref.c')
-rw-r--r--net/tipc/ref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/tipc/ref.c b/net/tipc/ref.c
index 596d3c8ff750..e6d6ae22ea49 100644
--- a/net/tipc/ref.c
+++ b/net/tipc/ref.c
@@ -79,7 +79,7 @@ int tipc_ref_table_init(u32 requested_size, u32 start)
while (sz < requested_size) {
sz <<= 1;
}
- table = (struct reference *)vmalloc(sz * sizeof(struct reference));
+ table = vmalloc(sz * sizeof(*table));
if (table == NULL)
return -ENOMEM;
OpenPOWER on IntegriCloud