Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f634489 authored by Arvind Yadav's avatar Arvind Yadav Committed by Rafael J. Wysocki
Browse files

powercap: Simplify powercap_init()



Simplify powercap_init() by reducing the number of redundant
assignments in it.

Signed-off-by: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
[ rjw: Subject+changelog ]
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ae64f9bd
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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);