]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx4_en: remove fallback after kzalloc_node()
authorEric Dumazet <edumazet@google.com>
Thu, 13 Dec 2018 11:03:37 +0000 (03:03 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Dec 2018 19:18:02 +0000 (11:18 -0800)
commit4beaacc6fea5a5ec43c55c22a6c83c03a5ecc775
treed7339bc54f9ee67b71054afd92f8055bed111c20
parentc03b0358ab60504151b35587c88205c7b7fe22be
net/mlx4_en: remove fallback after kzalloc_node()

kzalloc_node(..., GFP_KERNEL, node) will attempt to allocate
memory as close as possible to the node.

There is no need to fallback to kzalloc() if this has failed.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_cq.c
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c