static void
service_mapper_notify ( channel_service_mapping_t *csm, void *origin )
{
- if (origin == NULL || origin == csm->csm_svc) {
+ if (origin == NULL)
+ return;
+ if (origin == csm->csm_svc) {
idnode_notify_simple(&csm->csm_chn->ch_id);
channel_save(csm->csm_chn);
}
- if (origin == NULL || origin == csm->csm_chn)
+ if (origin == csm->csm_chn)
idnode_notify_simple(&csm->csm_svc->s_id);
}
* @param s The service to clean linkages for
* @param c The channel to clean linkages for
* @parma origin Origin of the change (should be a service or a channel ptr).
- * NULL = both changed, other ptr = no save and notifications.
+ * NULL = no save and notifications.
*
* @return 1 if changes were made, else 0
*/