提交 f63666d2 编写于 作者: G Glenn Ruben Bakke 提交者: Marcel Holtmann

Bluetooth: 6lowpan: Rename ambiguous variable

This patch renames the variable used to trigger scheduling of
delete_netdev. Changed to infinitiv in order to describe the action
to be done.
Signed-off-by: NLukasz Duda <lukasz.duda@nordicsemi.no>
Signed-off-by: NGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 a2105ae1
...@@ -937,7 +937,7 @@ static void chan_close_cb(struct l2cap_chan *chan) ...@@ -937,7 +937,7 @@ static void chan_close_cb(struct l2cap_chan *chan)
struct lowpan_dev *dev = NULL; struct lowpan_dev *dev = NULL;
struct lowpan_peer *peer; struct lowpan_peer *peer;
int err = -ENOENT; int err = -ENOENT;
bool last = false, removed = true; bool last = false, remove = true;
BT_DBG("chan %p conn %p", chan, chan->conn); BT_DBG("chan %p conn %p", chan, chan->conn);
...@@ -948,7 +948,7 @@ static void chan_close_cb(struct l2cap_chan *chan) ...@@ -948,7 +948,7 @@ static void chan_close_cb(struct l2cap_chan *chan)
/* If conn is set, then the netdev is also there and we should /* If conn is set, then the netdev is also there and we should
* not remove it. * not remove it.
*/ */
removed = false; remove = false;
} }
spin_lock(&devices_lock); spin_lock(&devices_lock);
...@@ -977,7 +977,7 @@ static void chan_close_cb(struct l2cap_chan *chan) ...@@ -977,7 +977,7 @@ static void chan_close_cb(struct l2cap_chan *chan)
ifdown(dev->netdev); ifdown(dev->netdev);
if (removed) { if (remove) {
INIT_WORK(&entry->delete_netdev, delete_netdev); INIT_WORK(&entry->delete_netdev, delete_netdev);
schedule_work(&entry->delete_netdev); schedule_work(&entry->delete_netdev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册