Re: [PATCH 04/11] Task watchers: Make process events configurable as a module

Chase Venters
2006-06-14T00:55:07Z

On Tuesday 13 June 2006 18:54, Matt Helsley wrote:

> +static void cn_proc_fini(void)
> +{
> + int err;
> +
> + err = unregister_task_watcher(&cn_proc_nb);
> + if (err != 0)
> + printk(KERN_WARNING
> + "cn_proc failed to unregister its task notify block\n");

How about if (err), or if (unregister_task_watcher(&cn_proc_nb))?

> + cn_del_callback(&cn_proc_event_id);
> +}
> +
> module_init(cn_proc_init);
> +module_exit(cn_proc_fini);

Thanks,
Chase