Bluetooth: 6lowpan: Rename ambiguous variable
[firefly-linux-kernel-4.4.55.git] / 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);
                }