ACPI/IORT: Rework iort_match_node_callback() return value handling
authorHanjun Guo <hanjun.guo@linaro.org>
Tue, 7 Mar 2017 12:39:58 +0000 (20:39 +0800)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 21 Mar 2017 18:09:51 +0000 (18:09 +0000)
commitc92bdfe8e7a6133fdbe8a2a08c68446dc2e52a17
tree57f6d0dbdb7e0915947ce769a5fd3b64a099d546
parent6cb6bf56dc15ec3954186524cd9a41347a18ebc8
ACPI/IORT: Rework iort_match_node_callback() return value handling

The return value handling in iort_match_node_callback() is
too convoluted; update the iort_match_node_callback() return
value handling to make code easier to read.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
[lorenzo.pieralisi@arm.com: rewrote commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Ming Lei <ming.lei@canonical.com>
Tested-by: Wei Xu <xuwei5@hisilicon.com>
Tested-by: Sinan Kaya <okaya@codeaurora.org>
Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Cc: Tomasz Nowicki <tn@semihalf.com>
drivers/acpi/arm64/iort.c