Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9df3f3d2 authored by Panagiotis Issaris's avatar Panagiotis Issaris Committed by David S. Miller
Browse files

[TIPC]: Removing useless casts



Removing useless casts

Signed-off-by: default avatarPanagiotis Issaris <takis@issaris.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8265abc0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -295,7 +295,7 @@ struct link_req *tipc_disc_init_link_req(struct bearer *b_ptr,
{
{
	struct link_req *req;
	struct link_req *req;


	req = (struct link_req *)kmalloc(sizeof(*req), GFP_ATOMIC);
	req = kmalloc(sizeof(*req), GFP_ATOMIC);
	if (!req)
	if (!req)
		return NULL;
		return NULL;


+1 −1
Original line number Original line Diff line number Diff line
@@ -79,7 +79,7 @@ int tipc_ref_table_init(u32 requested_size, u32 start)
	while (sz < requested_size) {
	while (sz < requested_size) {
		sz <<= 1;
		sz <<= 1;
	}
	}
	table = (struct reference *)vmalloc(sz * sizeof(struct reference));
	table = vmalloc(sz * sizeof(*table));
	if (table == NULL)
	if (table == NULL)
		return -ENOMEM;
		return -ENOMEM;