diff options
author | Leah Rowe <leah@libreboot.org> | 2025-04-17 18:04:51 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-04-17 18:04:51 +0100 |
commit | 30213a96883c6affe622d7f2855d350d733c4e75 (patch) | |
tree | 53bb784ce7a3a5eecff64b0ac891691f87557249 /include | |
parent | 38df7275f1263bc64bbf87e6ee7576aa6de176d2 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/vendor.sh | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/vendor.sh b/include/vendor.sh index dee6d389..5523cc6b 100644 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -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 ] && \ |