Bluetooth: Fix warnings for bt_key_strings and bt_slock_key_strings
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Nov 2008 11:17:19 +0000 (12:17 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Nov 2008 11:17:19 +0000 (12:17 +0100)
commitdb7aa1c203d477351ed1b8f394b40d9df06ddfc4
tree7a53a4e408eedca8e9342b7085ffd9de322919e3
parentc6bf514c6e0171c5b731beffaa0c4463e2335f3d
Bluetooth: Fix warnings for bt_key_strings and bt_slock_key_strings

After adding proper lockdep annotations for Bluetooth protocols the case
when lockdep is disabled produced two compiler warnings:

net/bluetooth/af_bluetooth.c:60: warning: ‘bt_key_strings’ defined but not used
net/bluetooth/af_bluetooth.c:71: warning: ‘bt_slock_key_strings’ defined but not used

Fix both of them by adding a CONFIG_DEBUG_LOCK_ALLOC conditional around
them and re-arranging the code a little bit.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/af_bluetooth.c