提交 9df3f3d2 编写于 作者: P Panagiotis Issaris 提交者: David S. Miller

[TIPC]: Removing useless casts

Removing useless casts
Signed-off-by: NPanagiotis Issaris <takis@issaris.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 8265abc0
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册