This chunk got mistakenly removed from 30c95c4, since the get_image_dd
evaluates only first agument, so that check is useless.

Fixes: 30c95c4 ("tegra: sysupgrade: use get_image_dd wrapper")
Signed-off-by: Tomasz Maciej Nowak <tmn...@gmail.com>
---
New patch.

 target/linux/tegra/base-files/lib/upgrade/platform.sh | 2 --
 1 file changed, 2 deletions(-)

diff --git a/target/linux/tegra/base-files/lib/upgrade/platform.sh 
b/target/linux/tegra/base-files/lib/upgrade/platform.sh
index 4b39b3e18230..715d1c1b8046 100644
--- a/target/linux/tegra/base-files/lib/upgrade/platform.sh
+++ b/target/linux/tegra/base-files/lib/upgrade/platform.sh
@@ -3,8 +3,6 @@ REQUIRE_IMAGE_METADATA=1
 platform_check_image() {
        local diskdev partdev diff
 
-       [ "$#" -gt 1 ] && return 1
-
        export_bootdevice && export_partdevice diskdev 0 || {
                v "Unable to determine upgrade device"
                return 1
-- 
2.29.2


_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to