Bluetooth: fix assignments on error variable err
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Mar 2017 15:10:53 +0000 (15:10 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 12 Apr 2017 20:02:38 +0000 (22:02 +0200)
commitcd50361c21b788a29f4661a6c49260eac2b13435
tree9a16ed4dc9abfb8be692b75277c0f4d0d3563870
parent6c7bb7ebb58c0e17b11aebf928ffc5c295959a01
Bluetooth: fix assignments on error variable err

Variable err is being initialized to zero and then later being
set to the error return from the call to hci_req_run_skb; hence
we can remove the redundant initialization to zero.

Also on two occassions err is not being set from the error return
from the call to hci_req_run_skb, so add these missing assignments.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/amp.c