From: Max Chou Date: Wed, 18 Sep 2019 08:56:41 +0000 (+0800) Subject: Bluetooth: btrtl: Fix an issue for the incorrect error return code. X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d171dfb621240ee6c77cb354c0767b6dd41f83fe;p=linux.git 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 Signed-off-by: Marcel Holtmann --- diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/btrtl.c index bf3c02be69305..ae9a2047f2422 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; }