[TIPC]: Removing useless casts
authorPanagiotis Issaris <takis@issaris.org>
Fri, 21 Jul 2006 22:52:20 +0000 (15:52 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Jul 2006 22:52:20 +0000 (15:52 -0700)
Removing useless casts

Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/discover.c
net/tipc/ref.c

index 2b84412031203c479d6418bc39965eb5ca36c2ce..ee94de92ae9916f9c53f3fcd7b46cb917005eba5 100644 (file)
@@ -295,7 +295,7 @@ struct link_req *tipc_disc_init_link_req(struct bearer *b_ptr,
 {
        struct link_req *req;
 
-       req = (struct link_req *)kmalloc(sizeof(*req), GFP_ATOMIC);
+       req = kmalloc(sizeof(*req), GFP_ATOMIC);
        if (!req)
                return NULL;
 
index 596d3c8ff75006a95545e9f1a9407bd5e6b9d062..e6d6ae22ea495065db2e5862c8ec41b95fda8661 100644 (file)
@@ -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;