OSDN Git Service

Bluetooth: hci_ldisc: Provide a 'default' switch case
authorFabio Estevam <fabio.estevam@nxp.com>
Wed, 25 Apr 2018 22:36:29 +0000 (19:36 -0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 May 2018 04:37:52 +0000 (06:37 +0200)
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>
drivers/bluetooth/hci_ldisc.c

index b6a7170..954213e 100644 (file)
@@ -447,6 +447,8 @@ static int hci_uart_setup(struct hci_dev *hdev)
                btbcm_check_bdaddr(hdev);
                break;
 #endif
+       default:
+               break;
        }
 
 done: