Re: [PATCH] Bluetooth: fix assignments on error variable err

2017-03-27 Thread Marcel Holtmann
Hi Colin, > 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_s

[PATCH] Bluetooth: fix assignments on error variable err

2017-03-01 Thread Colin King
From: Colin Ian King 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_s