Bluetooth: Clean up l2cap_chan_add
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Mon, 6 Feb 2012 13:04:00 +0000 (15:04 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:35 +0000 (17:01 +0200)
commit5491120e75afe2a7f5b6f3a207de6d99934e5475
tree12de6296d25e7bda4a82188c73fb7368d21ddede
parentcf4cd00915c659dc7b496c454bee36bb6b833fd1
Bluetooth: Clean up l2cap_chan_add

Change elseif to switch. This make sense even more with following
patches which otherwise have to add more elseifs statements.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c