mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-24 11:25:43 +00:00
net: hns3: fix wrong judgment condition issue
In hns3_dcbnl_ieee_delapp, should check ieee_delapp not ieee_setapp.
This path fix the wrong judgment.
Fixes: 0ba22bcb22
("net: hns3: add support config dscp map to tc")
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
147a1c06f4
commit
07a1d6dc90
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ static int hns3_dcbnl_ieee_delapp(struct net_device *ndev, struct dcb_app *app)
|
|||
if (hns3_nic_resetting(ndev))
|
||||
return -EBUSY;
|
||||
|
||||
if (h->kinfo.dcb_ops->ieee_setapp)
|
||||
if (h->kinfo.dcb_ops->ieee_delapp)
|
||||
return h->kinfo.dcb_ops->ieee_delapp(h, app);
|
||||
|
||||
return -EOPNOTSUPP;
|
||||
|
|
Loading…
Reference in a new issue