Bluetooth: btrtl: Ignore error return for hci_devcd_register()
authorMax Chou <max.chou@realtek.com>
Fri, 6 Oct 2023 02:47:07 +0000 (10:47 +0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Sat, 14 Oct 2023 03:03:04 +0000 (20:03 -0700)
commit9ee252868787ab5a26012d69e335c7371f54563a
tree0aef9dbade4b3d1a5f377845590c9e851712c369
parent35d91d95a0cd61ebb90e0246dc917fd25e519b8c
Bluetooth: btrtl: Ignore error return for hci_devcd_register()

If CONFIG_DEV_COREDUMP was not set, it would return -EOPNOTSUPP for
hci_devcd_register().
In this commit, ignore error return for hci_devcd_register().
Otherwise Bluetooth initialization will be failed.

Fixes: 044014ce85a1 ("Bluetooth: btrtl: Add Realtek devcoredump support")
Cc: stable@vger.kernel.org
Reported-by: Kirill A. Shutemov <kirill@shutemov.name>
Closes: https://lore.kernel.org/all/ZRyqIn0_qqEFBPdy@debian.me/T/
Signed-off-by: Max Chou <max.chou@realtek.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btrtl.c