summaryrefslogtreecommitdiffstats
path: root/net/bluetooth/hci_core.c
diff options
context:
space:
mode:
authorSzymon Janc2011-11-16 09:32:21 +0100
committerGustavo F. Padovan2011-11-16 21:30:21 +0100
commit1ec918cef5ced016edb95c357e45e656e4e156b1 (patch)
tree621f11f21ff7ea72f0a9b73d85ddb2fee30ad602 /net/bluetooth/hci_core.c
parentBluetooth: Simplify __l2cap_global_chan_by_addr (diff)
downloadkernel-qcow2-linux-1ec918cef5ced016edb95c357e45e656e4e156b1.tar.gz
kernel-qcow2-linux-1ec918cef5ced016edb95c357e45e656e4e156b1.tar.xz
kernel-qcow2-linux-1ec918cef5ced016edb95c357e45e656e4e156b1.zip
Bluetooth: Fix some checkpatch.pl errors and warnings
Signed-off-by: Szymon Janc <szymon.janc@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/hci_core.c')
-rw-r--r--net/bluetooth/hci_core.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index cf18f6d1b9a3..e0928bffd8c8 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -1337,14 +1337,12 @@ int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr)
{
struct bdaddr_list *entry;
- if (bacmp(bdaddr, BDADDR_ANY) == 0) {
+ if (bacmp(bdaddr, BDADDR_ANY) == 0)
return hci_blacklist_clear(hdev);
- }
entry = hci_blacklist_lookup(hdev, bdaddr);
- if (!entry) {
+ if (!entry)
return -ENOENT;
- }
list_del(&entry->list);
kfree(entry);