net/hns3: modify return value of enable MSI-X
authorWei Hu (Xavier) <xavier.huwei@huawei.com>
Sat, 21 Dec 2019 10:32:47 +0000 (18:32 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:01 +0000 (19:46 +0100)
This patch replaces the return value "-1" with "-ENXIO".

Signed-off-by: Wei Hu (Xavier) <xavier.huwei@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c

index bd52e19..b5f3e9a 100644 (file)
@@ -131,7 +131,7 @@ hns3vf_enable_msix(const struct rte_pci_device *device, bool op)
                                     (pos + PCI_MSIX_FLAGS));
                return 0;
        }
-       return -1;
+       return -ENXIO;
 }
 
 static int