bnx2x: remove cast around the kmalloc in bnx2x_prev_mark_path
authorDevendra Naga <develkernel412222@gmail.com>
Sun, 29 Jul 2012 03:19:23 +0000 (03:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Jul 2012 06:18:30 +0000 (23:18 -0700)
casting the void pointer is redundant (Documentation/CodingStyle)

Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c

index 9aaf863..dd451c3 100644 (file)
@@ -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;