summaryrefslogtreecommitdiff
path: root/util/flash_ec
diff options
context:
space:
mode:
Diffstat (limited to 'util/flash_ec')
-rwxr-xr-xutil/flash_ec3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/flash_ec b/util/flash_ec
index 1cead158a9..870d9afe07 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -916,8 +916,7 @@ function flash_flashrom() {
info "Running flashrom:" 1>&2
echo " ${FLASHROM_GETSIZE}" 1>&2
fi
- SPI_SIZE=$(${FLASHROM_GETSIZE} 2>/dev/null |\
- grep -oe '[0-9]\+$') || \
+ SPI_SIZE=$(${FLASHROM_GETSIZE} | grep -oe '[0-9]\+$') || \
die "Failed to determine chip size!"
[[ ${SPI_SIZE} -eq 0 ]] && die "Chip size is 0!"