aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorTomasz Maciej Nowak <tmn505@gmail.com>2020-12-01 18:29:14 +0100
committerPetr Štetiar <ynezz@true.cz>2020-12-22 18:59:10 +0100
commit16815704fca7107986ecc256bd79374f8173445b (patch)
tree613b5e37b464c0e6ab74e77413521f2503af40dc /target
parent6a1ad19cd3659b8df386ef8d7d2f9680bf749558 (diff)
downloadupstream-16815704fca7107986ecc256bd79374f8173445b.tar.gz
upstream-16815704fca7107986ecc256bd79374f8173445b.tar.bz2
upstream-16815704fca7107986ecc256bd79374f8173445b.zip
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@gmail.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/tegra/base-files/lib/upgrade/platform.sh2
1 files changed, 0 insertions, 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