summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/btrtl.c
diff options
context:
space:
mode:
authorMax Chou <max.chou@realtek.com>2019-09-18 10:56:41 +0200
committerMarcel Holtmann <marcel@holtmann.org>2019-10-16 19:26:40 +0200
commitd171dfb621240ee6c77cb354c0767b6dd41f83fe (patch)
treef780a0ebd7d0c056137781157ed2933cc075f7e1 /drivers/bluetooth/btrtl.c
parentBluetooth: hci_nokia: Save a few cycles in 'nokia_enqueue()' (diff)
downloadlinux-d171dfb621240ee6c77cb354c0767b6dd41f83fe.tar.xz
linux-d171dfb621240ee6c77cb354c0767b6dd41f83fe.zip
Bluetooth: btrtl: Fix an issue for the incorrect error return code.
It does not need the '-' for PTR_ERR(skb) because PTR_ERR(skb) will return the negative value during errors. Signed-off-by: Max Chou <max.chou@realtek.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btrtl.c')
-rw-r--r--drivers/bluetooth/btrtl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c
index bf3c02be6930..ae9a2047f242 100644
--- a/drivers/bluetooth/btrtl.c
+++ b/drivers/bluetooth/btrtl.c
@@ -418,7 +418,7 @@ static int rtl_download_firmware(struct hci_dev *hdev,
if (IS_ERR(skb)) {
rtl_dev_err(hdev, "download fw command failed (%ld)",
PTR_ERR(skb));
- ret = -PTR_ERR(skb);
+ ret = PTR_ERR(skb);
goto out;
}