Bluetooth: remove unused variable from cmtp
authorGustavo F. Padovan <padovan@profusion.mobi>
Fri, 3 Sep 2010 20:51:57 +0000 (17:51 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Tue, 12 Oct 2010 15:44:52 +0000 (12:44 -0300)
A value was attributed to 'src', but no one was using.

Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/cmtp/core.c

index d4c6af082d488f025ff22664fe7274370a2bb061..d4616060a196c500962e5119bd9c98e649d9cd21 100644 (file)
@@ -321,12 +321,11 @@ 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;
+       bdaddr_t 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);