of: unittest: fix an error code in of_unittest_apply_overlay()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Mar 2018 20:08:28 +0000 (23:08 +0300)
committerRob Herring <robh@kernel.org>
Tue, 20 Mar 2018 03:52:40 +0000 (22:52 -0500)
commit827473268ee492b30b576ef156ab524a2b9f3520
tree4798ef8eb4e41b684488333fb3f7dfc1df37f96f
parent202fbf4865e97b64ca2d94b7dc1a4efd6f7b0729
of: unittest: fix an error code in of_unittest_apply_overlay()

We accidentally return zero on failure instead of a negative error code.

Fixes: 39a751a4cb7e ("of: change overlay apply input data from unflattened to FDT")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c