Commit fd47785
net/ethtool/ioctl: remove if n_stats checks from ethtool_get_phy_stats
Now that we always early return if we don't have any stats we can remove
these checks as they're no longer necessary.
Signed-off-by: Daniil Tatianin <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent 9deb1e9 commit fd47785
1 file changed
+10
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2107 | 2107 | | |
2108 | 2108 | | |
2109 | 2109 | | |
2110 | | - | |
2111 | | - | |
2112 | | - | |
2113 | | - | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
2114 | 2113 | | |
2115 | | - | |
2116 | | - | |
2117 | | - | |
2118 | | - | |
2119 | | - | |
2120 | | - | |
2121 | | - | |
2122 | | - | |
| 2114 | + | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
2123 | 2119 | | |
2124 | | - | |
| 2120 | + | |
2125 | 2121 | | |
2126 | 2122 | | |
2127 | 2123 | | |
2128 | 2124 | | |
2129 | 2125 | | |
2130 | 2126 | | |
2131 | | - | |
| 2127 | + | |
2132 | 2128 | | |
2133 | 2129 | | |
2134 | 2130 | | |
| |||
0 commit comments