driver core: fix using 'ret' variable in unregister_dynamic_debug_module
authorJohann Felix Soden <johfel@users.sourceforge.net>
Thu, 30 Oct 2008 21:44:39 +0000 (22:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 17 Dec 2008 19:23:06 +0000 (11:23 -0800)
The 'ret' variable is assigned, but not used in the return statement. Fix this.

Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net>
Acked-by: Jason Baron <jbaron@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
lib/dynamic_printk.c

index d83660fd6fdde53617121f3f72e38b58158126b9..d0fd0e4ed9a8f81febb9c883550306aa58b1cb45 100644 (file)
@@ -135,7 +135,7 @@ int unregister_dynamic_debug_module(char *mod_name)
        nr_entries--;
 out:
        up(&debug_list_mutex);
-       return 0;
+       return ret;
 }
 EXPORT_SYMBOL_GPL(unregister_dynamic_debug_module);