Commit 69d12201 authored by Chiqijun's avatar Chiqijun Committed by Zheng Zengkai
Browse files

net/hinic: Remove the initialization of the global variable g_uld_info



driver inclusion
category: bugfix
bugzilla: 47993

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

In the hinic driver, the g_uld_info global variable is assigned to all
0s, and the'designated init' alarm is reported at compile time. The
global variable defaults to all 0s, and the assignment of 0s is not
necessary.

Signed-off-by: default avatarChiqijun <chiqijun@huawei.com>
Reviewed-by: default avatarWangxiaoyun <cloud.wangxiaoyun@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 0b17a1b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ struct hinic_pcidev {
#define MAX_CARD_ID 64
static u64 card_bit_map;
LIST_HEAD(g_hinic_chip_list);
struct hinic_uld_info g_uld_info[SERVICE_T_MAX] = { {0} };
struct hinic_uld_info g_uld_info[SERVICE_T_MAX];
static const char *s_uld_name[SERVICE_T_MAX] = {
	"nic", "ovs", "roce", "toe", "iwarp", "fc", "fcoe", "migrate"};