* Hook disconnection */
| 358 | * Hook disconnection |
| 359 | */ |
| 360 | static int |
| 361 | ng_pred1_disconnect(hook_p hook) |
| 362 | { |
| 363 | const node_p node = NG_HOOK_NODE(hook); |
| 364 | |
| 365 | Pred1Init(node); |
| 366 | |
| 367 | /* Go away if no longer connected. */ |
| 368 | if ((NG_NODE_NUMHOOKS(node) == 0) && NG_NODE_IS_VALID(node)) |
| 369 | ng_rmnode_self(node); |
| 370 | return (0); |
| 371 | } |
| 372 | |
| 373 | /************************************************************************ |
| 374 | HELPER STUFF |
nothing calls this directly
no test coverage detected