Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: comedi: proc: Warn if unable to create proc entry

The proc entry is not essential for the comedi system as
evident by the support for !CONFIG_PROC_FS. So for failure
to create, just warn and continue loading.

Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Cheah Kok Cheong and committed by
Greg Kroah-Hartman
2e4b5cd6 6bd68e29

+2 -1
+2 -1
drivers/staging/comedi/proc.c
··· 89 89 90 90 void __init comedi_proc_init(void) 91 91 { 92 - proc_create("comedi", 0444, NULL, &comedi_proc_fops); 92 + if (!proc_create("comedi", 0444, NULL, &comedi_proc_fops)) 93 + pr_warn("comedi: unable to create proc entry\n"); 93 94 } 94 95 95 96 void comedi_proc_cleanup(void)