Bluetooth: Make hci_send_sco() void

It also removes an unneeded check for the MTU. The check is done before
on sco_send_frame()

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Reviewed-by: João Paulo Rechi Vita <jprvita@profusion.mobi>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Gustavo F. Padovan
2010-05-01 16:15:35 -03:00
committed by Marcel Holtmann
parent 4f7ac1814e
commit 0d861d8b8e
3 changed files with 3 additions and 11 deletions

View File

@@ -249,8 +249,7 @@ static inline int sco_send_frame(struct sock *sk, struct msghdr *msg, int len)
goto fail;
}
if ((err = hci_send_sco(conn->hcon, skb)) < 0)
return err;
hci_send_sco(conn->hcon, skb);
return count;