From: Johann Felix Soden Date: Thu, 30 Oct 2008 21:44:39 +0000 (+0100) Subject: driver core: fix using 'ret' variable in unregister_dynamic_debug_module X-Git-Tag: v2.6.28-rc9~9^2~3 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1c93ca09863a544cec24fc8e33491f645df80e59;p=linux-2.6-omap-h63xx.git driver core: fix using 'ret' variable in unregister_dynamic_debug_module The 'ret' variable is assigned, but not used in the return statement. Fix this. Signed-off-by: Johann Felix Soden Acked-by: Jason Baron Signed-off-by: Greg Kroah-Hartman --- diff --git a/lib/dynamic_printk.c b/lib/dynamic_printk.c index d83660fd6fd..d0fd0e4ed9a 100644 --- a/lib/dynamic_printk.c +++ b/lib/dynamic_printk.c @@ -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);