Lines Matching defs:err
61 int err;
73 nsock = sockfd_lookup(ca.sock, &err);
75 return err;
83 err = bnep_add_connection(&ca, nsock);
84 if (!err) {
86 err = -EFAULT;
90 return err;
108 err = bnep_get_connlist(&cl);
109 if (!err && copy_to_user(argp, &cl, sizeof(cl)))
112 return err;
118 err = bnep_get_conninfo(&ci);
119 if (!err && copy_to_user(argp, &ci, sizeof(ci)))
122 return err;
150 int err;
160 err = bnep_get_connlist(&cl);
162 if (!err && put_user(cl.cnum, p))
163 err = -EFAULT;
165 return err;
227 int err;
229 err = proto_register(&bnep_proto, 0);
230 if (err < 0)
231 return err;
233 err = bt_sock_register(BTPROTO_BNEP, &bnep_sock_family_ops);
234 if (err < 0) {
239 err = bt_procfs_init(&init_net, "bnep", &bnep_sk_list, NULL);
240 if (err < 0) {
252 return err;