projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d666fc5
)
Bluetooth: hci_ldisc: Provide a 'default' switch case
author
Fabio Estevam
<fabio.estevam@nxp.com>
Wed, 25 Apr 2018 22:36:29 +0000
(19:36 -0300)
committer
Marcel 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
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/hci_ldisc.c
b/drivers/bluetooth/hci_ldisc.c
index b6a71705b7d6a6f2c1c87452a61c80500115c680..954213e5daa518fdb792aa2a08dd0ebeed2dea51 100644
(file)
--- 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: