Bluetooth: 6lowpan: Rename ambiguous variable
authorGlenn Ruben Bakke <glenn.ruben.bakke@nordicsemi.no>
Wed, 17 Jun 2015 14:32:24 +0000 (07:32 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 17 Jun 2015 17:17:58 +0000 (19:17 +0200)
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>
net/bluetooth/6lowpan.c

index 3edc7315835e60e512e510968e3887b14f85a682..7ee591aac2fc5186c25cd2d85efa786f289d3e3d 100644 (file)
@@ -937,7 +937,7 @@ static void chan_close_cb(struct l2cap_chan *chan)
        struct lowpan_dev *dev = NULL;
        struct lowpan_peer *peer;
        int err = -ENOENT;
-       bool last = false, removed = true;
+       bool last = false, remove = true;
 
        BT_DBG("chan %p conn %p", chan, chan->conn);
 
@@ -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
                 * not remove it.
                 */
-               removed = false;
+               remove = false;
        }
 
        spin_lock(&devices_lock);
@@ -977,7 +977,7 @@ static void chan_close_cb(struct l2cap_chan *chan)
 
                ifdown(dev->netdev);
 
-               if (removed) {
+               if (remove) {
                        INIT_WORK(&entry->delete_netdev, delete_netdev);
                        schedule_work(&entry->delete_netdev);
                }