]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: Fix check for ethtool get_link operation support
authorBen Hutchings <bhutchings@solarflare.com>
Fri, 7 Dec 2012 06:15:32 +0000 (06:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 7 Dec 2012 19:35:35 +0000 (14:35 -0500)
commitd8e99611bacfdd92863881a52f8bbe697d7f3cb7
tree381f04cf369eae7de070dda85eaa25623bbea0cd
parentb3686883a27a2403a436ae5d931ca259322618fb
bonding: Fix check for ethtool get_link operation support

Since commit 839ff1fa8e08 ('net: provide a default dev->ethtool_ops')
all devices have a non-null ethtool_ops.  Test only
dev->ethtool_ops->get_link in both places where we care.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c