aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bonding.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-11-15 11:12:25 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-17 10:36:50 -0800
commitc04914af6861d62df303aeedbbe554972ce4e736 (patch)
tree47e835b36264498574a6e09e8d1032ece0cbcdfc /drivers/net/bonding/bonding.h
parentdrivers/isdn/i4l: Remove unnecessary casts of netdev_priv (diff)
downloadlinux-dev-c04914af6861d62df303aeedbbe554972ce4e736.tar.xz
linux-dev-c04914af6861d62df303aeedbbe554972ce4e736.zip
drivers/net/bonding: Remove unnecessary casts of netdev_priv
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/bonding/bonding.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
index 4eedb12df6ca..ad3ae46a4c01 100644
--- a/drivers/net/bonding/bonding.h
+++ b/drivers/net/bonding/bonding.h
@@ -286,7 +286,7 @@ static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)
return NULL;
}
- return (struct bonding *)netdev_priv(slave->dev->master);
+ return netdev_priv(slave->dev->master);
}
static inline bool bond_is_lb(const struct bonding *bond)