From: Gianluca Anzolin Date: Mon, 29 Jul 2013 15:08:09 +0000 (+0200) Subject: Bluetooth: Remove the device from the list in the destructor X-Git-Tag: v3.12-rc1~132^2~84^2^2~54^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebe937f74b8a72cf3ceeae5c2194a160bb092901;p=pandora-kernel.git Bluetooth: Remove the device from the list in the destructor The current code removes the device from the device list in several places. Do it only in the destructor instead and in the error path of rfcomm_add_dev() if the device couldn't be initialized. Signed-off-by: Gianluca Anzolin Reviewed-by: Peter Hurley Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed