We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5362101 commit be5cc41Copy full SHA for be5cc41
net/ethtool/ioctl.c
@@ -2134,7 +2134,7 @@ static int ethtool_get_phy_stats_ethtool(struct net_device *dev,
2134
const struct ethtool_ops *ops = dev->ethtool_ops;
2135
int n_stats, ret;
2136
2137
- if (!ops || !ops->get_sset_count || ops->get_ethtool_phy_stats)
+ if (!ops || !ops->get_sset_count || !ops->get_ethtool_phy_stats)
2138
return -EOPNOTSUPP;
2139
2140
n_stats = ops->get_sset_count(dev, ETH_SS_PHY_STATS);
0 commit comments