]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Remove return statement in btintel_reset_to_bootloader
authorNathan Chancellor <natechancellor@gmail.com>
Fri, 18 Oct 2019 22:29:24 +0000 (15:29 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 19 Oct 2019 07:56:20 +0000 (09:56 +0200)
commit3eeb0493f1767ae055279dda4f907025c058c9d0
tree4daae67d8fbc673ed200d7d7f694e0f42f131660
parent9a20d5c7cbc16d65cbe786f4c2d52d78d3fdd448
Bluetooth: btusb: Remove return statement in btintel_reset_to_bootloader

When building with Clang and CONFIG_BT_INTEL unset, the following error
occurs:

In file included from drivers/bluetooth/hci_ldisc.c:34:
drivers/bluetooth/btintel.h:188:2: error: void function
'btintel_reset_to_bootloader' should not return a value [-Wreturn-type]
        return -EOPNOTSUPP;
        ^      ~~~~~~~~~~~
1 error generated.

Remove the unneeded return statement to fix this.

Fixes: 49bbaf85317b ("Bluetooth: btusb: Trigger Intel FW download error recovery")
Link: https://github.com/ClangBuiltLinux/linux/issues/743
Reported-by: <ci_notify@linaro.org>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btintel.h