driver core: Use 'ret' variable in unregister_dynamic_debug_module
PATCH 1/1 driver core: Use 'ret' variable in unregister_dynamic_debug_module
From: Johann Felix Soden <[email protected]>
The 'ret' variable is assigned, but not used in the return statement. Fix this.
Signed-off-by Johann Felix Soden <[email protected]>
CC Jason Baron <[email protected]>
--- lib/dynamic_printk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
lib/dynamic_printk.c +1 -1
@@ -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);
Signature · 1 line
1.5.6.5
Quoted 15 lines · Johann Felix Soden
From: Johann Felix Soden <[email protected]>
The 'ret' variable is assigned, but not used in the return statement. Fix this.
Signed-off-by Johann Felix Soden <[email protected]>CC Jason Baron <[email protected]>--- lib/dynamic_printk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)lib/dynamic_printk.c +0
-0
lib/dynamic_printk.c int unregister_dynamic_debug_module(char *mod_name) · line 141
Quoted 8 lines
lib/dynamic_printk.c +1
-1@@ -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);
looks good to me.
Acked-by Jason Baron <[email protected]>
thanks,
-Jason