]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/firmware/psci: Assign @err directly in hotplug_tests()
authorGavin Shan <gshan@redhat.com>
Tue, 30 Jun 2020 07:59:43 +0000 (17:59 +1000)
committerWill Deacon <will@kernel.org>
Wed, 8 Jul 2020 20:41:24 +0000 (21:41 +0100)
commite729944f61a43de942d24bcba8334165378f73b1
tree1194758c65ab5021416d1f998a4f4f8f2e3439a6
parent5dc359ae16e9a879276828b6c3419b320d544371
drivers/firmware/psci: Assign @err directly in hotplug_tests()

The return value of down_and_up_cpus() can be assigned to @err directly.
With that, the useless assignment to @err with zero can be dropped.

Signed-off-by: Gavin Shan <gshan@redhat.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Link: https://lore.kernel.org/r/20200630075943.203954-1-gshan@redhat.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/firmware/psci/psci_checker.c