From 30213a96883c6affe622d7f2855d350d733c4e75 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 17 Apr 2025 18:04:51 +0100 Subject: 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 --- include/vendor.sh | 2 -- 1 file changed, 2 deletions(-) (limited to 'include') 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 ] && \ -- cgit v1.2.1