tegra: sysupgrade: remove check for number of arguments
authorTomasz Maciej Nowak <tmn505@gmail.com>
Tue, 1 Dec 2020 17:29:14 +0000 (18:29 +0100)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 17:59:10 +0000 (18:59 +0100)
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>
target/linux/tegra/base-files/lib/upgrade/platform.sh

index 3e6ea8a44ff213f6ca6bf40fb8ef945979d5f11f..170bc11ba709a9233b353f358d296fad483bf5ae 100644 (file)
@@ -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