net: Removing useless casts
Subsystems (3)
PATCH 1/4 net: Removing useless casts
From: Panagiotis Issaris <[email protected]>
Removing useless casts
Signed-off-by Panagiotis Issaris <[email protected]>
--- net/tipc/discover.c | 2 +- net/tipc/ref.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
net/tipc/discover.c +1 -1
@@ -295,7 +295,7 @@ struct link_req *tipc_disc_init_link_req {struct link_req *req; - req = (struct link_req *)kmalloc (sizeof (*req),GFP_ATOMIC ); + req =kmalloc (sizeof (*req),GFP_ATOMIC );if (!req)return NULL ;
net/tipc/ref.c +1 -1
@@ -79,7 +79,7 @@ int tipc_ref_table_init(u32 requested_siwhile (sz < requested_size) { sz <<=1 ; } - table = (struct reference *)vmalloc (sz *sizeof (struct reference )); + table =vmalloc (sz *sizeof (*table));if (table ==NULL )return -ENOMEM ;
Signature · 1 line
1.4.2.rc1.ge7a0-dirty
From: [email protected]
Date: Fri, 21 Jul 2006 15:45:50 +0200
Quoted 5 lines
From: Panagiotis Issaris <[email protected]>
Removing useless casts
Signed-off-by Panagiotis Issaris <[email protected]>
Applied, thanks.