Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Devendra Naga and committed by
David S. Miller
ea4b3857 61648d91

+1 -2
+1 -2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
··· 9360 9360 struct bnx2x_prev_path_list *tmp_list; 9361 9361 int rc; 9362 9362 9363 - tmp_list = (struct bnx2x_prev_path_list *) 9364 - kmalloc(sizeof(struct bnx2x_prev_path_list), GFP_KERNEL); 9363 + tmp_list = kmalloc(sizeof(struct bnx2x_prev_path_list), GFP_KERNEL); 9365 9364 if (!tmp_list) { 9366 9365 BNX2X_ERR("Failed to allocate 'bnx2x_prev_path_list'\n"); 9367 9366 return -ENOMEM;