diff options
author | Arnd Bergmann <arnd@arndb.de> | 2019-09-18 21:59:02 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-10-16 19:26:40 +0200 |
commit | 42d22098127d6384f789107f59caae87d7520fc4 (patch) | |
tree | 2d58e8971ffbb1d9b6cd91d009889c7716d88285 /drivers/bluetooth/hci_mrvl.c | |
parent | 74ffdf22b3acf8961b6904dda350135e9aaeb445 (diff) |
Bluetooth: btusb: avoid unused function warning
The btusb_rtl_cmd_timeout() function is used inside of an
ifdef, leading to a warning when this part is hidden
from the compiler:
drivers/bluetooth/btusb.c:530:13: error: unused function 'btusb_rtl_cmd_timeout' [-Werror,-Wunused-function]
Use an IS_ENABLED() check instead so the compiler can see
the code and then discard it silently.
Fixes: d7ef0d1e3968 ("Bluetooth: btusb: Use cmd_timeout to reset Realtek device")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_mrvl.c')
0 files changed, 0 insertions, 0 deletions