Skip to content

Commit

Permalink
bluetooth: 6lowpan dev_close never returns error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stephen hemminger authored and David S. Miller committed Jul 19, 2017
1 parent eb2b987 commit ddee310
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions net/bluetooth/6lowpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit ddee310

Please sign in to comment.