Skip to content

Commit

Permalink
driver core: fix using 'ret' variable in unregister_dynamic_debug_module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johann Felix Soden authored and Greg Kroah-Hartman committed Dec 17, 2008
1 parent 1bda712 commit 1c93ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dynamic_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 1c93ca0

Please sign in to comment.