diff options
author | Sven Eckelmann <sven.eckelmann@open-mesh.com> | 2016-05-17 17:51:35 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2016-05-23 12:19:23 +0200 |
commit | d1b4a8cfcfb8f3965b79d199993bc847004a7419 (patch) | |
tree | 851a2794282536bacbeaabdb9d746270b26db99f /target/linux/at91/legacy | |
parent | 6150c15ad109e49958cb393915679afa1bf12368 (diff) | |
download | master-31e0f0ae-d1b4a8cfcfb8f3965b79d199993bc847004a7419.tar.gz master-31e0f0ae-d1b4a8cfcfb8f3965b79d199993bc847004a7419.tar.bz2 master-31e0f0ae-d1b4a8cfcfb8f3965b79d199993bc847004a7419.zip |
ar71xx: Move OpenMesh image target validation into subfunction
The platform_check_image_openmesh function used break statements to signal
that the board name matched the image target. This worked because the
sysupgrade binary checked the image inside a loop. The break statement
stopped the loop and skipped any additional check.
Instead the check should be done without such sideeffects by simply
combining the board names and image targets. Only a mismatch should cause a
negative result for the caller and skipping of the additional checks.
Signed-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>
Diffstat (limited to 'target/linux/at91/legacy')
0 files changed, 0 insertions, 0 deletions