When the device is not capable of supporting SR-IOV -ENODEV is being
returned; -EOPNOTSUPP is more appropriate.
Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
 
        if (!test_bit(ICE_FLAG_SRIOV_CAPABLE, pf->flags)) {
                dev_err(dev, "This device is not capable of SR-IOV\n");
-               return -ENODEV;
+               return -EOPNOTSUPP;
        }
 
        if (pre_existing_vfs && pre_existing_vfs != num_vfs)