]> git.baikalelectronics.ru Git - kernel.git/commit
dynamic_debug: simplify dynamic_debug_init error exit
authorJim Cromie <jim.cromie@gmail.com>
Fri, 27 Apr 2012 20:30:38 +0000 (14:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Apr 2012 20:25:39 +0000 (16:25 -0400)
commitface38a3f6c07636e0deda010e26b227d84a37b8
treec4489c25edde2f6c4aaeac9eaf2d6d784f6572f9
parentf39f1e562190358c2ae55a23381fc03cccede328
dynamic_debug: simplify dynamic_debug_init error exit

We dont want errors while parsing ddebug_query to unload ddebug
tables, so set success after tables are loaded, and return 0 after
query parsing is done.

Simplify error handling code since its no longer used for success,
and change goto label to out_err to clarify this.

Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Acked-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/dynamic_debug.c