Bluetooth: Graceful cleanup for uninitialised timer & unregistered device.

The device de-registration when called from different process context
without regristation, doesn't complete because of synchronized timer
delete APIs. Hence timer setup state is checked before deletion to
avoid non returnable code. Also graceful cleanup is ensured.

Change-Id: I865e9d93aa9833f854b83c8718d33f13ba140df0
CRs-fixed: 326882
Signed-off-by: Royston Rodrigues <roystonr@codeaurora.org>
1 file changed