vendor.sh: remove unnecessary check

the next part checks whether the file is below 512k,
so there's no point checking if it's below 2, because
the lowest a file size can be is zero, and expr will
produce a result of -1 if decrementing from zero.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-17 18:04:51 +01:00
parent 38df7275f1
commit 30213a9688
-2
View File
@@ -527,8 +527,6 @@ process_release_rom()
expr "X$xromsize" : "X-\{0,1\}[0123456789][0123456789]*$" \
1>/dev/null 2>/dev/null || $err "$_xrom size non-integer"
[ $xromsize -lt 2 ] && \
$err "$_xrom: Will not create empty file. $dontflash"
xromsize="`expr $xromsize - 1`"
[ $xromsize -lt 524288 ] && \