The function dev_close in current kernel will never return an
error. Later changes will make it void.

Signed-off-by: Stephen Hemminger <sthem...@microsoft.com>
---
 net/bluetooth/6lowpan.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c
index ab3b654b05cc..e542b8959d88 100644
--- a/net/bluetooth/6lowpan.c
+++ b/net/bluetooth/6lowpan.c
@@ -621,9 +621,7 @@ 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();
 }
 
-- 
2.11.0

Reply via email to