aboutsummaryrefslogtreecommitdiff
path: root/net/core/ethtool.c
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2011-11-16 14:32:03 +0000
committerDavid S. Miller <davem@davemloft.net>2011-11-16 22:00:14 -0500
commit09da71b1212f900cca390d2bffc32b2ae4e4eee2 (patch)
treef0e4cfbd6f780decf0a64c23a97c84467d3e5565 /net/core/ethtool.c
parentb721e25383c394f24fa19a66517c5efca382c2e5 (diff)
net: ethtool: fix coding style
Add missing spaces around multiplication operator. Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/ethtool.c')
-rw-r--r--net/core/ethtool.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/net/core/ethtool.c b/net/core/ethtool.c
index d2eff9ec88b..31b0b7f5383 100644
--- a/net/core/ethtool.c
+++ b/net/core/ethtool.c
@@ -87,13 +87,14 @@ static int ethtool_get_features(struct net_device *dev, void __user *useraddr)
int i;
/* in case feature bits run out again */
- BUILD_BUG_ON(ETHTOOL_DEV_FEATURE_WORDS*sizeof(u32) > sizeof(netdev_features_t));
+ BUILD_BUG_ON(ETHTOOL_DEV_FEATURE_WORDS * sizeof(u32) > sizeof(netdev_features_t));
for (i = 0; i < ETHTOOL_DEV_FEATURE_WORDS; ++i) {
- features[i].available = (u32)(dev->hw_features >> (32*i));
- features[i].requested = (u32)(dev->wanted_features >> (32*i));
- features[i].active = (u32)(dev->features >> (32*i));
- features[i].never_changed = (u32)(NETIF_F_NEVER_CHANGE >> (32*i));
+ features[i].available = (u32)(dev->hw_features >> (32 * i));
+ features[i].requested = (u32)(dev->wanted_features >> (32 * i));
+ features[i].active = (u32)(dev->features >> (32 * i));
+ features[i].never_changed =
+ (u32)(NETIF_F_NEVER_CHANGE >> (32 * i));
}
sizeaddr = useraddr + offsetof(struct ethtool_gfeatures, size);
@@ -130,8 +131,8 @@ static int ethtool_set_features(struct net_device *dev, void __user *useraddr)
return -EFAULT;
for (i = 0; i < ETHTOOL_DEV_FEATURE_WORDS; ++i) {
- valid |= (netdev_features_t)features[i].valid << (32*i);
- wanted |= (netdev_features_t)features[i].requested << (32*i);
+ valid |= (netdev_features_t)features[i].valid << (32 * i);
+ wanted |= (netdev_features_t)features[i].requested << (32 * i);
}
if (valid & ~NETIF_F_ETHTOOL_BITS)