forked from luck/tmp_suning_uos_patched
powercap: Simplify powercap_init()
Simplify powercap_init() by reducing the number of redundant assignments in it. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> [ rjw: Subject+changelog ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
ae64f9bd1d
commit
7f6344896d
|
@ -673,15 +673,13 @@ EXPORT_SYMBOL_GPL(powercap_unregister_control_type);
|
|||
|
||||
static int __init powercap_init(void)
|
||||
{
|
||||
int result = 0;
|
||||
int result;
|
||||
|
||||
result = seed_constraint_attributes();
|
||||
if (result)
|
||||
return result;
|
||||
|
||||
result = class_register(&powercap_class);
|
||||
|
||||
return result;
|
||||
return class_register(&powercap_class);
|
||||
}
|
||||
|
||||
device_initcall(powercap_init);
|
||||
|
|
Loading…
Reference in New Issue
Block a user