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>
This commit is contained in:
Tomasz Maciej Nowak 2020-12-01 18:29:14 +01:00 committed by Petr Štetiar
parent 6a1ad19cd3
commit 16815704fc

View 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