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:

committed by
Marcel Holtmann

parent
4f7ac1814e
commit
0d861d8b8e
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user