Pārlūkot izejas kodu

[TIPC]: Removing useless casts

Removing useless casts

Signed-off-by: Panagiotis Issaris <takis@issaris.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Panagiotis Issaris 19 gadi atpakaļ
vecāks
revīzija
9df3f3d28b
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 1 1
      net/tipc/discover.c
  2. 1 1
      net/tipc/ref.c

+ 1 - 1
net/tipc/discover.c

@@ -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;
 

+ 1 - 1
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;