]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Unwind l2cap_sock_shutdown()
authorDean Jenkins <Dean_Jenkins@mentor.com>
Wed, 14 Oct 2015 10:18:45 +0000 (12:18 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 20 Oct 2015 22:49:26 +0000 (00:49 +0200)
commit56e44c1be2677f3a15bd0e8639dbc6a76703e76f
tree87c6a143827fc5c107464ae2366af8ba42af095a
parent90f736167c202e9b6c6dafb7a57f545318619bab
Bluetooth: Unwind l2cap_sock_shutdown()

l2cap_sock_shutdown() is designed to only action shutdown
of the channel when shutdown is not already in progress.
Therefore, reorganise the code flow by adding a goto
to jump to the end of function handling when shutdown is
already being actioned. This removes one level of code
indentation and make the code more readable.

Signed-off-by: Dean Jenkins <Dean_Jenkins@mentor.com>
Signed-off-by: Harish Jenny K N <harish_kandiga@mentor.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_sock.c