linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / net / bluetooth / bnep / core.c
index d908d49..cbb20c3 100644 (file)
@@ -532,8 +532,8 @@ int bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock)
        dev = alloc_netdev(sizeof(struct bnep_session),
                           (*req->device) ? req->device : "bnep%d",
                           bnep_net_setup);
-       if (!dev)
-               return -ENOMEM;
+       if (!dev) 
+               return ENOMEM;
 
 
        down_write(&bnep_session_sem);