]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Bluetooth: Remove wrong error check
authorGustavo F. Padovan <padovan@profusion.mobi>
Fri, 7 Oct 2011 00:27:56 +0000 (21:27 -0300)
committerGustavo F. Padovan <padovan@profusion.mobi>
Fri, 7 Oct 2011 02:15:06 +0000 (23:15 -0300)
d458a9dfc add this check, but now it proves to be wrong.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hidp/core.c

index 8d99a17c478c89ba6c90889872f7050a7d9d5c6d..7722d8346684f2426163f5a95c49dcfd2e47a5ce 100644 (file)
@@ -1023,7 +1023,7 @@ int hidp_add_connection(struct hidp_connadd_req *req, struct socket *ctrl_sock,
 
        if (req->rd_size > 0) {
                err = hidp_setup_hid(session, req);
-               if (err && err != -ENODEV)
+               if (err)
                        goto purge;
        }