ACPI: bus: Remove the unneeded result variable

Return the value from driver_register() directly instead of storing it
in another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
ye xingchen 2022-08-24 07:53:06 +00:00 • committed by Rafael J. Wysocki
commit 4b76dfbc44