From: Meng Yu Date: Thu, 1 Apr 2021 06:50:38 +0000 (+0800) Subject: Bluetooth: Remove 'return' in void function X-Git-Tag: accepted/tizen/unified/20230118.172025~7335^2~197^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82a1242619d0db39ca710538fa2a53623a1022c8;p=platform%2Fkernel%2Flinux-rpi.git Bluetooth: Remove 'return' in void function void function return statements are not generally useful. Signed-off-by: Meng Yu Signed-off-by: Marcel Holtmann --- diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index cff4944..19f7e42 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -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) diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 7641fdf..a3b1d40 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -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);