Commit ee8a0ac9 authored by Tian Xin's avatar Tian Xin Committed by tianx
Browse files

drivers: Fix compile warning "argument used uninitialized"

yunsilicon inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/IAERZJ


CVE: NA

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

Fix compile warning "argument used uninitialized"

Fixes: 5b8a867a ("drivers: support Yunsilicon's MS and MV series NICs")
Reviewed-by: default avatarWeihonggang <weihg@yunsilicon.com>
Signed-off-by: default avatarTian Xin <tianx@yunsilicon.com>
parent bc83d7d9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ static int xsc_dcbnl_ieee_setpfc(struct net_device *dev,
{
	struct xsc_adapter *priv = netdev_priv(dev);
	u32 changed = 0;
	u8 curr_pfc_en;
	u8 curr_pfc_en = 0;
	int ret = 0;
#ifndef XSC_DCBX_STUB
	struct xsc_core_device *xdev = priv->xdev;
@@ -919,7 +919,7 @@ static int xsc_dcbnl_getbuffer(struct net_device *dev,
	struct xsc_adapter *priv = netdev_priv(dev);
	struct xsc_core_device *xdev = priv->xdev;
	struct xsc_port_buffer port_buffer = {0};
	u8 buffer[XSC_MAX_PRIORITY];
	u8 buffer[XSC_MAX_PRIORITY] = {0};
	int i;
#ifndef XSC_DCBX_STUB
	int err = 0;