summaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2015-08-18 21:23:01 -0400
committerMarcel Holtmann <marcel@holtmann.org>2015-08-28 21:00:37 +0200
commitdf945360ce07ca592464e44fdd2ce61ee1536e1e (patch)
treeba6b5a5f2579881915dcf127b2a8f1208ffdb2d7 /net/bluetooth
parentd4902632ffe5d6958bd267a6712575e3a312a6e2 (diff)
downloadop-kernel-dev-df945360ce07ca592464e44fdd2ce61ee1536e1e.zip
op-kernel-dev-df945360ce07ca592464e44fdd2ce61ee1536e1e.tar.gz
Bluetooth: Make the function sco_conn_del have a return type of void
This makes the function sco_conn_del have a return type of void now due to this function always running successfully and thus never needing to signal its caller when a non recoverable internal failure occurs by returning a error code to its respective caller. Signed-off-by: Nicholas Krause <xerofoify@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/sco.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/bluetooth/sco.c b/net/bluetooth/sco.c
index 688a040..f315c8d 100644
--- a/net/bluetooth/sco.c
+++ b/net/bluetooth/sco.c
@@ -154,13 +154,13 @@ static void sco_chan_del(struct sock *sk, int err)
sock_set_flag(sk, SOCK_ZAPPED);
}
-static int sco_conn_del(struct hci_conn *hcon, int err)
+static void sco_conn_del(struct hci_conn *hcon, int err)
{
struct sco_conn *conn = hcon->sco_data;
struct sock *sk;
if (!conn)
- return 0;
+ return;
BT_DBG("hcon %p conn %p, err %d", hcon, conn, err);
@@ -179,7 +179,6 @@ static int sco_conn_del(struct hci_conn *hcon, int err)
hcon->sco_data = NULL;
kfree(conn);
- return 0;
}
static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, struct sock *parent)
OpenPOWER on IntegriCloud