ethtool: make find_feature_index() return negative errno

This commit is contained in:
Yu Watanabe
2019-02-12 11:03:40 +09:00
parent 704dbfb279
commit ee60be466b
+1 -1
View File
@@ -358,7 +358,7 @@ static int find_feature_index(struct ethtool_gstrings *strings, const char *feat
return i;
}
return -1;
return -ENODATA;
}
int ethtool_set_features(int *fd, const char *ifname, int *features) {