Bluetooth: Remove 'return' in void function
authorMeng Yu <yumeng18@huawei.com>
Thu, 1 Apr 2021 06:50:38 +0000 (14:50 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 2 Apr 2021 09:01:35 +0000 (11:01 +0200)
void function return statements are not generally useful.

Signed-off-by: Meng Yu <yumeng18@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/6lowpan.c
net/bluetooth/l2cap_core.c

index cff4944..19f7e42 100644 (file)
@@ -841,8 +841,6 @@ static void chan_close_cb(struct l2cap_chan *chan)
        } else {
                spin_unlock(&devices_lock);
        }
-
-       return;
 }
 
 static void chan_state_change_cb(struct l2cap_chan *chan, int state, int err)
index 7641fdf..a3b1d40 100644 (file)
@@ -676,8 +676,6 @@ void l2cap_chan_del(struct l2cap_chan *chan, int err)
                skb_queue_purge(&chan->tx_q);
                break;
        }
-
-       return;
 }
 EXPORT_SYMBOL_GPL(l2cap_chan_del);