[openwrt/openwrt] tegra: sysupgrade: remove check for number of arguments

LEDE Commits lede-commits at lists.infradead.org
Tue Dec 22 13:13:11 EST 2020


ynezz pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/16815704fca7107986ecc256bd79374f8173445b

commit 16815704fca7107986ecc256bd79374f8173445b
Author: Tomasz Maciej Nowak <tmn505 at gmail.com>
AuthorDate: Tue Dec 1 18:29:14 2020 +0100

    tegra: sysupgrade: remove check for number of arguments
    
    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 <tmn505 at gmail.com>
---
 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 3e6ea8a44f..170bc11ba7 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



More information about the lede-commits mailing list