From: Johan Hedberg Date: Wed, 3 Dec 2014 09:03:06 +0000 (+0200) Subject: Bluetooth: Simplify Link Key Notification event handling logic X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~28^2~5^2~93 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82c13d42bb9e54e0678cbbac16fb51cf3e2f0eff;p=pandora-kernel.git Bluetooth: Simplify Link Key Notification event handling logic When we get a Link Key Notification HCI event we should already have a hci_conn object. This should have been created either in the Connection Request event handler, the hci_connect_acl() function or the hci_cs_create_conn() function (if the request was not sent by the kernel). Since the only case that we'd end up not having a hci_conn in the Link Key Notification event handler would be essentially broken hardware it's safe to simply bail out from the function if this happens. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed