Lines Matching defs:err
60 int err;
72 nsock = sockfd_lookup(ca.sock, &err);
74 return err;
82 err = bnep_add_connection(&ca, nsock);
83 if (!err) {
85 err = -EFAULT;
89 return err;
107 err = bnep_get_connlist(&cl);
108 if (!err && copy_to_user(argp, &cl, sizeof(cl)))
111 return err;
117 err = bnep_get_conninfo(&ci);
118 if (!err && copy_to_user(argp, &ci, sizeof(ci)))
121 return err;
149 int err;
159 err = bnep_get_connlist(&cl);
161 if (!err && put_user(cl.cnum, p))
162 err = -EFAULT;
164 return err;
234 int err;
236 err = proto_register(&bnep_proto, 0);
237 if (err < 0)
238 return err;
240 err = bt_sock_register(BTPROTO_BNEP, &bnep_sock_family_ops);
241 if (err < 0) {
246 err = bt_procfs_init(&init_net, "bnep", &bnep_sk_list, NULL);
247 if (err < 0) {
259 return err;