From: Johan Hedberg Date: Tue, 18 Feb 2014 15:14:33 +0000 (+0200) Subject: Bluetooth: Fix hci_remove_ltk failure when no match is found X-Git-Tag: v3.15-rc1~113^2~159^2^2~130^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c51ffa0b2fb23ec19b2d01597506d8c953ed1218;p=pandora-kernel.git Bluetooth: Fix hci_remove_ltk failure when no match is found There is code (in mgmt.c) that depends on the hci_remove_ltk function to fail if no match is found. This patch adds tracking of removed LTKs (there can be up to two: one for master and another for slave) in the hci_remove_ltk function and returns -ENOENT of no matches were found. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed