summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/hci_ldisc.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-04-26 00:36:29 +0200
committerMarcel Holtmann <marcel@holtmann.org>2018-05-18 06:37:52 +0200
commitd36dfb3e9b990b45bb812fd144b19737649a69ba (patch)
treed08497a032bc2caf431a66df068d7e88c994ab5e /drivers/bluetooth/hci_ldisc.c
parentBluetooth: btusb: add ID for LiteOn 04ca:301a (diff)
downloadlinux-d36dfb3e9b990b45bb812fd144b19737649a69ba.tar.xz
linux-d36dfb3e9b990b45bb812fd144b19737649a69ba.zip
Bluetooth: hci_ldisc: Provide a 'default' switch case
When both CONFIG_BT_HCIUART_INTEL and CONFIG_BT_HCIUART_BCM are not selected, sparse complains like this: drivers/bluetooth/hci_ldisc.c:437:9: warning: switch with no cases Fix the sparse warning by proving a default switch case. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_ldisc.c')
-rw-r--r--drivers/bluetooth/hci_ldisc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c
index b6a71705b7d6..954213e5daa5 100644
--- a/drivers/bluetooth/hci_ldisc.c
+++ b/drivers/bluetooth/hci_ldisc.c
@@ -447,6 +447,8 @@ static int hci_uart_setup(struct hci_dev *hdev)
btbcm_check_bdaddr(hdev);
break;
#endif
+ default:
+ break;
}
done: