mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
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:
@@ -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 ] && \
|
||||
|
||||
Reference in New Issue
Block a user