projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc73c41
)
bonding: remove NULL verification from bond_get_bond_by_slave()
author
Veaceslav Falico
<
[email protected]
>
Wed, 21 May 2014 15:42:01 +0000
(17:42 +0200)
committer
David S. Miller
<
[email protected]
>
Thu, 22 May 2014 19:46:34 +0000
(15:46 -0400)
Every caller relies on the result being the actual bond, so this
verification just masks the real problem.
CC: Jay Vosburgh <
[email protected]
>
CC: Andy Gospodarek <
[email protected]
>
Signed-off-by: Veaceslav Falico <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bonding/bonding.h
patch
|
blob
|
history
diff --git
a/drivers/net/bonding/bonding.h
b/drivers/net/bonding/bonding.h
index 44334b3d3b8844a2d71ceac284ff31b4d03a46ef..dfc37797df41ff9212bd3ca6f002d63fceb72d38 100644
(file)
--- a/
drivers/net/bonding/bonding.h
+++ b/
drivers/net/bonding/bonding.h
@@
-249,8
+249,6
@@
static inline struct slave *bond_get_slave_by_dev(struct bonding *bond,
static inline struct bonding *bond_get_bond_by_slave(struct slave *slave)
{
- if (!slave || !slave->bond)
- return NULL;
return slave->bond;
}