]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: 6lowpan: Enable delete_netdev to be scheduled when last peer is deleted
authorGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Wed, 17 Jun 2015 14:32:23 +0000 (07:32 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Jun 2015 17:17:57 +0000 (19:17 +0200)
commit732d86839d1d4e06a8cc0f5ebdb434969e9ba1d2
tree99a517e8ebac43d871599fc62cb7de09e130edcb
parent00f353b5652c4989fd7a63357e69f5b244fb44b0
Bluetooth: 6lowpan: Enable delete_netdev to be scheduled when last peer is deleted

This patch fixes an issue with the netdev not being unregistered when
the last peer is deleted. Removing the logical negation operator on the
boolean solves this issue. If the last peer is removed the condition
will be true, and the delete_netdev() is scheduled.

Signed-off-by: Lukasz Duda <lukasz.duda@nordicsemi.no>
Signed-off-by: Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c