ACPI: bus: Remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Wed, 24 Aug 2022 07:53:06 +0000 (07:53 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 25 Aug 2022 18:30:29 +0000 (20:30 +0200)
commit4b76dfbc44582a6cdf62eadb147f3a88f28de3dd
tree088f4c2df566fe857281fc97b02c790c04a5a0af
parent1c23f9e627a7b412978b4e852793c5e3c3efc555
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>
drivers/acpi/bus.c