Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea4b3857 authored by Devendra Naga's avatar Devendra Naga Committed by David S. Miller
Browse files

bnx2x: remove cast around the kmalloc in bnx2x_prev_mark_path



casting the void pointer is redundant (Documentation/CodingStyle)

Signed-off-by: default avatarDevendra Naga <develkernel412222@gmail.com>
Acked-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 61648d91
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -9360,8 +9360,7 @@ static int __devinit bnx2x_prev_mark_path(struct bnx2x *bp)
	struct bnx2x_prev_path_list *tmp_list;
	struct bnx2x_prev_path_list *tmp_list;
	int rc;
	int rc;


	tmp_list = (struct bnx2x_prev_path_list *)
	tmp_list = kmalloc(sizeof(struct bnx2x_prev_path_list), GFP_KERNEL);
		    kmalloc(sizeof(struct bnx2x_prev_path_list), GFP_KERNEL);
	if (!tmp_list) {
	if (!tmp_list) {
		BNX2X_ERR("Failed to allocate 'bnx2x_prev_path_list'\n");
		BNX2X_ERR("Failed to allocate 'bnx2x_prev_path_list'\n");
		return -ENOMEM;
		return -ENOMEM;