Skip to content

Commit

Permalink
Bluetooth: btusb: Remove return statement in btintel_reset_to_bootloader
Browse files Browse the repository at this point in the history
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: b9a2562 ("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>
  • Loading branch information
Nathan Chancellor authored and Marcel Holtmann committed Oct 19, 2019
1 parent a9314e7 commit fae7548
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/bluetooth/btintel.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,5 @@ static inline int btintel_download_firmware(struct hci_dev *dev,

static inline void btintel_reset_to_bootloader(struct hci_dev *hdev)
{
return -EOPNOTSUPP;
}
#endif

0 comments on commit fae7548

Please sign in to comment.