diff options
Diffstat (limited to 'include/uapi/linux/ethtool.h')
-rw-r--r-- | include/uapi/linux/ethtool.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 099a4200732c..8e547231c1b7 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h | |||
@@ -119,8 +119,7 @@ struct ethtool_cmd { | |||
119 | static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep, | 119 | static inline void ethtool_cmd_speed_set(struct ethtool_cmd *ep, |
120 | __u32 speed) | 120 | __u32 speed) |
121 | { | 121 | { |
122 | 122 | ep->speed = (__u16)(speed & 0xFFFF); | |
123 | ep->speed = (__u16)speed; | ||
124 | ep->speed_hi = (__u16)(speed >> 16); | 123 | ep->speed_hi = (__u16)(speed >> 16); |
125 | } | 124 | } |
126 | 125 | ||