diff options
author | Glenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no> | 2015-06-17 10:32:24 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-06-17 13:17:58 -0400 |
commit | f63666d20973b85073c4849c9d7471219adf6da9 (patch) | |
tree | 1e427b61d33b9c67751f5a76203443aff44c9111 /net/bluetooth | |
parent | a2105ae1de117e17522d37b6dedb1f286c544160 (diff) |
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: 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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/6lowpan.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 3edc7315835e..7ee591aac2fc 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c | |||
@@ -937,7 +937,7 @@ static void chan_close_cb(struct l2cap_chan *chan) | |||
937 | struct lowpan_dev *dev = NULL; | 937 | struct lowpan_dev *dev = NULL; |
938 | struct lowpan_peer *peer; | 938 | struct lowpan_peer *peer; |
939 | int err = -ENOENT; | 939 | int err = -ENOENT; |
940 | bool last = false, removed = true; | 940 | bool last = false, remove = true; |
941 | 941 | ||
942 | BT_DBG("chan %p conn %p", chan, chan->conn); | 942 | BT_DBG("chan %p conn %p", chan, chan->conn); |
943 | 943 | ||
@@ -948,7 +948,7 @@ static void chan_close_cb(struct l2cap_chan *chan) | |||
948 | /* If conn is set, then the netdev is also there and we should | 948 | /* If conn is set, then the netdev is also there and we should |
949 | * not remove it. | 949 | * not remove it. |
950 | */ | 950 | */ |
951 | removed = false; | 951 | remove = false; |
952 | } | 952 | } |
953 | 953 | ||
954 | spin_lock(&devices_lock); | 954 | spin_lock(&devices_lock); |
@@ -977,7 +977,7 @@ static void chan_close_cb(struct l2cap_chan *chan) | |||
977 | 977 | ||
978 | ifdown(dev->netdev); | 978 | ifdown(dev->netdev); |
979 | 979 | ||
980 | if (removed) { | 980 | if (remove) { |
981 | INIT_WORK(&entry->delete_netdev, delete_netdev); | 981 | INIT_WORK(&entry->delete_netdev, delete_netdev); |
982 | schedule_work(&entry->delete_netdev); | 982 | schedule_work(&entry->delete_netdev); |
983 | } | 983 | } |