Commit 991e767d authored by Xu Yiwei's avatar Xu Yiwei Committed by guzitao
Browse files

sw64: irqchip: remove fallback after kzalloc_node()

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IB73UR



--------------------------------

Following similar changes of commit 4beaacc6 ("net/mlx4_en:
remove fallback after kzalloc_node()").

Signed-off-by: default avatarXu Yiwei <xuyiwei@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent e7032779
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -47,9 +47,6 @@ struct intx_chip_data *alloc_intx_chip_data(u32 node)

	chip_data = kzalloc_node(sizeof(struct intx_chip_data),
			GFP_KERNEL, node);
	if (!chip_data)
		chip_data = kzalloc(sizeof(struct intx_chip_data),
				GFP_KERNEL);

	return chip_data;
}
+0 −3
Original line number Diff line number Diff line
@@ -97,9 +97,6 @@ static struct pintc_chip_data *pintc_alloc_chip_data(u32 node)

	chip_data = kzalloc_node(sizeof(struct pintc_chip_data),
			GFP_KERNEL, node);
	if (!chip_data)
		chip_data = kzalloc(sizeof(struct pintc_chip_data),
				GFP_KERNEL);

	chip_datas[node] = chip_data;