@@ -291,7 +291,7 @@ int tipc_deleteport(u32 ref)
291291 kfree(p_ptr);
292292 dbg("Deleted port %u\n", ref);
293293 tipc_net_route_msg(buf);
294- return TIPC_OK ;
294+ return 0 ;
295295}
296296
297297/**
@@ -336,7 +336,7 @@ int tipc_portunreliable(u32 ref, unsigned int *isunreliable)
336336 return -EINVAL;
337337 *isunreliable = port_unreliable(p_ptr);
338338 tipc_port_unlock(p_ptr);
339- return TIPC_OK ;
339+ return 0 ;
340340}
341341
342342int tipc_set_portunreliable(u32 ref, unsigned int isunreliable)
@@ -348,7 +348,7 @@ int tipc_set_portunreliable(u32 ref, unsigned int isunreliable)
348348 return -EINVAL;
349349 msg_set_src_droppable(&p_ptr->publ.phdr, (isunreliable != 0));
350350 tipc_port_unlock(p_ptr);
351- return TIPC_OK ;
351+ return 0 ;
352352}
353353
354354static int port_unreturnable(struct port *p_ptr)
@@ -365,7 +365,7 @@ int tipc_portunreturnable(u32 ref, unsigned int *isunrejectable)
365365 return -EINVAL;
366366 *isunrejectable = port_unreturnable(p_ptr);
367367 tipc_port_unlock(p_ptr);
368- return TIPC_OK ;
368+ return 0 ;
369369}
370370
371371int tipc_set_portunreturnable(u32 ref, unsigned int isunrejectable)
@@ -377,7 +377,7 @@ int tipc_set_portunreturnable(u32 ref, unsigned int isunrejectable)
377377 return -EINVAL;
378378 msg_set_dest_droppable(&p_ptr->publ.phdr, (isunrejectable != 0));
379379 tipc_port_unlock(p_ptr);
380- return TIPC_OK ;
380+ return 0 ;
381381}
382382
383383/*
@@ -963,7 +963,7 @@ static u32 port_dispatcher(struct tipc_port *dummy, struct sk_buff *buf)
963963 tipc_k_signal((Handler)port_dispatcher_sigh, 0);
964964 }
965965 spin_unlock_bh(&queue_lock);
966- return TIPC_OK ;
966+ return 0 ;
967967}
968968
969969/*
@@ -1068,14 +1068,14 @@ int tipc_createport(u32 user_ref,
10681068 tipc_reg_add_port(up_ptr);
10691069 *portref = p_ptr->publ.ref;
10701070 tipc_port_unlock(p_ptr);
1071- return TIPC_OK ;
1071+ return 0 ;
10721072}
10731073
10741074int tipc_ownidentity(u32 ref, struct tipc_portid *id)
10751075{
10761076 id->ref = ref;
10771077 id->node = tipc_own_addr;
1078- return TIPC_OK ;
1078+ return 0 ;
10791079}
10801080
10811081int tipc_portimportance(u32 ref, unsigned int *importance)
@@ -1087,7 +1087,7 @@ int tipc_portimportance(u32 ref, unsigned int *importance)
10871087 return -EINVAL;
10881088 *importance = (unsigned int)msg_importance(&p_ptr->publ.phdr);
10891089 tipc_port_unlock(p_ptr);
1090- return TIPC_OK ;
1090+ return 0 ;
10911091}
10921092
10931093int tipc_set_portimportance(u32 ref, unsigned int imp)
@@ -1102,7 +1102,7 @@ int tipc_set_portimportance(u32 ref, unsigned int imp)
11021102 return -EINVAL;
11031103 msg_set_importance(&p_ptr->publ.phdr, (u32)imp);
11041104 tipc_port_unlock(p_ptr);
1105- return TIPC_OK ;
1105+ return 0 ;
11061106}
11071107
11081108
@@ -1137,7 +1137,7 @@ int tipc_publish(u32 ref, unsigned int scope, struct tipc_name_seq const *seq)
11371137 list_add(&publ->pport_list, &p_ptr->publications);
11381138 p_ptr->pub_count++;
11391139 p_ptr->publ.published = 1;
1140- res = TIPC_OK ;
1140+ res = 0 ;
11411141 }
11421142exit:
11431143 tipc_port_unlock(p_ptr);
@@ -1160,7 +1160,7 @@ int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq)
11601160 tipc_nametbl_withdraw(publ->type, publ->lower,
11611161 publ->ref, publ->key);
11621162 }
1163- res = TIPC_OK ;
1163+ res = 0 ;
11641164 } else {
11651165 list_for_each_entry_safe(publ, tpubl,
11661166 &p_ptr->publications, pport_list) {
@@ -1174,7 +1174,7 @@ int tipc_withdraw(u32 ref, unsigned int scope, struct tipc_name_seq const *seq)
11741174 break;
11751175 tipc_nametbl_withdraw(publ->type, publ->lower,
11761176 publ->ref, publ->key);
1177- res = TIPC_OK ;
1177+ res = 0 ;
11781178 break;
11791179 }
11801180 }
@@ -1218,7 +1218,7 @@ int tipc_connect2port(u32 ref, struct tipc_portid const *peer)
12181218 tipc_nodesub_subscribe(&p_ptr->subscription,peer->node,
12191219 (void *)(unsigned long)ref,
12201220 (net_ev_handler)port_handle_node_down);
1221- res = TIPC_OK ;
1221+ res = 0 ;
12221222exit:
12231223 tipc_port_unlock(p_ptr);
12241224 p_ptr->publ.max_pkt = tipc_link_get_max_pkt(peer->node, ref);
@@ -1240,7 +1240,7 @@ int tipc_disconnect_port(struct tipc_port *tp_ptr)
12401240 /* let timer expire on it's own to avoid deadlock! */
12411241 tipc_nodesub_unsubscribe(
12421242 &((struct port *)tp_ptr)->subscription);
1243- res = TIPC_OK ;
1243+ res = 0 ;
12441244 } else {
12451245 res = -ENOTCONN;
12461246 }
@@ -1305,7 +1305,7 @@ int tipc_isconnected(u32 ref, int *isconnected)
13051305 return -EINVAL;
13061306 *isconnected = p_ptr->publ.connected;
13071307 tipc_port_unlock(p_ptr);
1308- return TIPC_OK ;
1308+ return 0 ;
13091309}
13101310
13111311int tipc_peer(u32 ref, struct tipc_portid *peer)
@@ -1319,7 +1319,7 @@ int tipc_peer(u32 ref, struct tipc_portid *peer)
13191319 if (p_ptr->publ.connected) {
13201320 peer->ref = port_peerport(p_ptr);
13211321 peer->node = port_peernode(p_ptr);
1322- res = TIPC_OK ;
1322+ res = 0 ;
13231323 } else
13241324 res = -ENOTCONN;
13251325 tipc_port_unlock(p_ptr);
0 commit comments