]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: remove NULL verification from bond_get_bond_by_slave()
authorVeaceslav Falico <vfalico@gmail.com>
Wed, 21 May 2014 15:42:01 +0000 (17:42 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 May 2014 19:46:34 +0000 (15:46 -0400)
commit40b9e593fa762322ba1b94a78b41436690eb97c3
tree8fac08b65e226b156f8cfe3089fb8dfbae4cc323
parent0ef7853cfc777cbeb87cf156f3710dc9ecd3e5eb
bonding: remove NULL verification from bond_get_bond_by_slave()

Every caller relies on the result being the actual bond, so this
verification just masks the real problem.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bonding.h