diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-10-15 16:00:02 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-10-15 16:00:02 -0400 |
commit | 1a63c353c856c9f6d44a533afb6ad6dbbcdea683 (patch) | |
tree | a51c18f01c031a21f07ec3be07ffae210bb9adc7 /net/bluetooth/cmtp/core.c | |
parent | 7662ff46b7b3678162ce125903115e4ab0607a2d (diff) | |
parent | b3c0598952e02f1f1f6d003574549d940ecbf31a (diff) | |
download | op-kernel-dev-1a63c353c856c9f6d44a533afb6ad6dbbcdea683.zip op-kernel-dev-1a63c353c856c9f6d44a533afb6ad6dbbcdea683.tar.gz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/padovan/bluetooth-next-2.6 into for-davem
Diffstat (limited to 'net/bluetooth/cmtp/core.c')
-rw-r--r-- | net/bluetooth/cmtp/core.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/bluetooth/cmtp/core.c b/net/bluetooth/cmtp/core.c index d4c6af0..ec0a134 100644 --- a/net/bluetooth/cmtp/core.c +++ b/net/bluetooth/cmtp/core.c @@ -321,14 +321,10 @@ static int cmtp_session(void *arg) int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock) { struct cmtp_session *session, *s; - bdaddr_t src, dst; int i, err; BT_DBG(""); - baswap(&src, &bt_sk(sock->sk)->src); - baswap(&dst, &bt_sk(sock->sk)->dst); - session = kzalloc(sizeof(struct cmtp_session), GFP_KERNEL); if (!session) return -ENOMEM; @@ -347,7 +343,7 @@ int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock) BT_DBG("mtu %d", session->mtu); - sprintf(session->name, "%s", batostr(&dst)); + sprintf(session->name, "%s", batostr(&bt_sk(sock->sk)->dst)); session->sock = sock; session->state = BT_CONFIG; |