bnx2x: remove cast around the kmalloc in bnx2x_prev_mark_path
PATCH 1/1 bnx2x: remove cast around the kmalloc in bnx2x_prev_mark_path
casting the void pointer is redundant (Documentation/CodingStyle)
Signed-off-by Devendra Naga <[email protected]>
--- drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +1 -2
@@ -9360,8 +9360,7 @@ static int __devinit bnx2x_prev_mark_path(struct bnx2x *bp)struct bnx2x_prev_path_list *tmp_list;int rc; - tmp_list = (struct bnx2x_prev_path_list *) -kmalloc (sizeof (struct bnx2x_prev_path_list ),GFP_KERNEL ); + tmp_list =kmalloc (sizeof (struct bnx2x_prev_path_list ),GFP_KERNEL );if (!tmp_list) {BNX2X_ERR ("Failed to allocate 'bnx2x_prev_path_list'\n" );return -ENOMEM ;
Signature · 1 line
1.7.9.5
Quoted 3 lines · Devendra Naga
casting the void pointer is redundant (
Documentation/CodingStyle)Signed-off-by Devendra Naga <[email protected]>
Thanks Devendra, obviously, I’m acking this patch. I’m not so sure if it should go into net though, and net-next is closed right now but this is up to Dave.
Acked-by Eilon Greenstein <[email protected]>
From: Devendra Naga <[email protected]>
Date: Sun, 29 Jul 2012 19:04:23 +0545
Quoted 3 lines
casting the void pointer is redundant (
Documentation/CodingStyle)Signed-off-by Devendra Naga <[email protected]>
Applied.