diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-07-18 15:59:25 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-19 16:44:54 -0700 |
commit | ddee3103eeafd1d9dbe831274c3813d5cac30bc3 (patch) | |
tree | c4ecc2ccb27c7f900f42fa39ff503f8e99db507d /net/bluetooth/6lowpan.c | |
parent | eb2b98742641ae544fd16311055789ab7cac62aa (diff) | |
download | lwn-ddee3103eeafd1d9dbe831274c3813d5cac30bc3.tar.gz lwn-ddee3103eeafd1d9dbe831274c3813d5cac30bc3.zip |
bluetooth: 6lowpan dev_close never returns error
The function dev_close in current kernel will never return an
error. Later changes will make it void.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r-- | net/bluetooth/6lowpan.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index ab3b654b05cc..2af4f1cc0ab4 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -618,12 +618,8 @@ static void ifup(struct net_device *netdev) static void ifdown(struct net_device *netdev) { - int err; - rtnl_lock(); - err = dev_close(netdev); - if (err < 0) - BT_INFO("iface %s cannot be closed (%d)", netdev->name, err); + dev_close(netdev); rtnl_unlock(); } |