board: fsl: lx2160a: Fix the loop in board_fix_fdt function
authorPankaj Bansal <pankaj.bansal@nxp.com>
Wed, 15 Jan 2020 05:57:00 +0000 (05:57 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 24 Jan 2020 08:58:26 +0000 (14:28 +0530)
commit71c8fb3e3a3e79c98d305b49ea46ae92332c3f20
tree16d7b2d5700061a22af0863df59661b0e595ebbe
parent0d9d557de58c3e61f01e053d320ff2e8719336dc
board: fsl: lx2160a: Fix the loop in board_fix_fdt function

Fix loop in board_fix_fdt that erroneously increments the counter
in all cases whereas the counter should be incremented only if a
matching string has been found.

Fixes: 5d535aa40b ("board: fsl: lx2160a: implement board_fix_fdt")

Signed-off-by: Pankaj Bansal <pankaj.bansal@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
board/freescale/lx2160a/lx2160a.c