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>
This commit is contained in:
Родитель
250938cb37
Коммит
1ec918cef5
|
@ -1337,14 +1337,12 @@ int hci_blacklist_del(struct hci_dev *hdev, bdaddr_t *bdaddr)
|
||||||
{
|
{
|
||||||
struct bdaddr_list *entry;
|
struct bdaddr_list *entry;
|
||||||
|
|
||||||
if (bacmp(bdaddr, BDADDR_ANY) == 0) {
|
if (bacmp(bdaddr, BDADDR_ANY) == 0)
|
||||||
return hci_blacklist_clear(hdev);
|
return hci_blacklist_clear(hdev);
|
||||||
}
|
|
||||||
|
|
||||||
entry = hci_blacklist_lookup(hdev, bdaddr);
|
entry = hci_blacklist_lookup(hdev, bdaddr);
|
||||||
if (!entry) {
|
if (!entry)
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
|
||||||
|
|
||||||
list_del(&entry->list);
|
list_del(&entry->list);
|
||||||
kfree(entry);
|
kfree(entry);
|
||||||
|
|
|
@ -97,7 +97,6 @@ static struct l2cap_chan *__l2cap_get_chan_by_dcid(struct l2cap_conn *conn, u16
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct l2cap_chan *__l2cap_get_chan_by_scid(struct l2cap_conn *conn, u16 cid)
|
static struct l2cap_chan *__l2cap_get_chan_by_scid(struct l2cap_conn *conn, u16 cid)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче