提交 d36dfb3e 编写于 作者: F Fabio Estevam 提交者: Marcel Holtmann

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: NFabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 d666fc54
......@@ -447,6 +447,8 @@ static int hci_uart_setup(struct hci_dev *hdev)
btbcm_check_bdaddr(hdev);
break;
#endif
default:
break;
}
done:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册