aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDevendra Naga <develkernel412222@gmail.com>2012-07-28 23:19:23 -0400
committerDavid S. Miller <davem@davemloft.net>2012-07-30 02:18:30 -0400
commitea4b3857861fe147137517da200d04cbbc91ad49 (patch)
treedc679271b65f8f768a0a609d330c7692c1651dff /drivers/net
parent61648d91fc278fd1d500da8061d17e6920cd3500 (diff)
bnx2x: remove cast around the kmalloc in bnx2x_prev_mark_path
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
index 9aaf863b4237..dd451c3dd83d 100644
--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
+++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
@@ -9360,8 +9360,7 @@ static int __devinit bnx2x_prev_mark_path(struct bnx2x *bp)
9360 struct bnx2x_prev_path_list *tmp_list; 9360 struct bnx2x_prev_path_list *tmp_list;
9361 int rc; 9361 int rc;
9362 9362
9363 tmp_list = (struct bnx2x_prev_path_list *) 9363 tmp_list = kmalloc(sizeof(struct bnx2x_prev_path_list), GFP_KERNEL);
9364 kmalloc(sizeof(struct bnx2x_prev_path_list), GFP_KERNEL);
9365 if (!tmp_list) { 9364 if (!tmp_list) {
9366 BNX2X_ERR("Failed to allocate 'bnx2x_prev_path_list'\n"); 9365 BNX2X_ERR("Failed to allocate 'bnx2x_prev_path_list'\n");
9367 return -ENOMEM; 9366 return -ENOMEM;