From: Johan Hedberg Date: Wed, 12 Nov 2014 07:17:08 +0000 (+0200) Subject: Bluetooth: Remove unnecessary hci_dev_lock/unlock in smp.c X-Git-Tag: omap-for-v3.19/fixes-rc1~125^2~134^2~5^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a930430b047a0cc118bfc47ca54fcdfbadf091d2;p=pandora-kernel.git Bluetooth: Remove unnecessary hci_dev_lock/unlock in smp.c The mgmt_user_passkey_request and related functions do not do anything else except read access to hdev->id. This member never changes after the hdev creation so there is no need to acquire a lock to read it. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed