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>
This commit is contained in:
committed by
David S. Miller
parent
eb2b987426
commit
ddee3103ee
@ -618,12 +618,8 @@ static void ifup(struct net_device *netdev)
|
|||||||
|
|
||||||
static void ifdown(struct net_device *netdev)
|
static void ifdown(struct net_device *netdev)
|
||||||
{
|
{
|
||||||
int err;
|
|
||||||
|
|
||||||
rtnl_lock();
|
rtnl_lock();
|
||||||
err = dev_close(netdev);
|
dev_close(netdev);
|
||||||
if (err < 0)
|
|
||||||
BT_INFO("iface %s cannot be closed (%d)", netdev->name, err);
|
|
||||||
rtnl_unlock();
|
rtnl_unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user