projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb2b987
)
bluetooth: 6lowpan dev_close never returns error
author
stephen hemminger
<stephen@networkplumber.org>
Tue, 18 Jul 2017 22:59:25 +0000
(15:59 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 19 Jul 2017 23:44:54 +0000
(16:44 -0700)
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>
net/bluetooth/6lowpan.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/6lowpan.c
b/net/bluetooth/6lowpan.c
index ab3b654b05cc87e19a965d0419efb7d45bd4b94e..2af4f1cc0ab47a905fd31a9008dca161b4d8a2bb 100644
(file)
--- 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();
}