of: overlay: fix uninitialized read of variable
When there are no fragments, we return an uninitialized err.
Initialize err as zero, so it's returned in that case.

Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent dac73d7 commit 2570742ccc2d5b7f2bbfef0733d1d1c093352d16
@Ahmad Fatoum Ahmad Fatoum authored on 7 Apr 2020
Sascha Hauer committed on 14 Apr 2020
Showing 1 changed file
View
drivers/of/overlay.c