Skip to content

Commit

Permalink
[TIPC]: Removing useless casts
Browse files Browse the repository at this point in the history
Removing useless casts

Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Panagiotis Issaris authored and David S. Miller committed Jul 21, 2006
1 parent 8265abc commit 9df3f3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/tipc/discover.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion net/tipc/ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9df3f3d

Please sign in to comment.