From: Andre Guedes Date: Fri, 27 Jul 2012 18:10:13 +0000 (-0300) Subject: Bluetooth: Refactor hci_cs_le_create_conn X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~47^2~319^2^2~34^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f00a06ac14becc3d78fecdf2513cc23ee267a96b;p=pandora-kernel.git Bluetooth: Refactor hci_cs_le_create_conn This patch does some code refactoring in hci_cs_le_create_conn function. The hci_conn object is only needed in case of failure, therefore hdev locking and hci_conn lookup were moved to if-statement scope. Also, the conn->state check was removed since we should always close the connection if it fails. Signed-off-by: Andre Guedes Signed-off-by: Gustavo Padovan --- Reading git-diff-tree failed