From 1e3d7d5978c7b74763c8a496d0ce5d1e789cdf4c Mon Sep 17 00:00:00 2001 From: pennam Date: Mon, 27 May 2024 12:42:00 +0200 Subject: [PATCH] Delete nullptr check on local fixed size array --- src/ota/implementation/OTAEsp32.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/ota/implementation/OTAEsp32.cpp b/src/ota/implementation/OTAEsp32.cpp index f52e6472..055eb6a0 100644 --- a/src/ota/implementation/OTAEsp32.cpp +++ b/src/ota/implementation/OTAEsp32.cpp @@ -89,10 +89,6 @@ void ESP32OTACloudProcess::calculateSHA256(SHA256& sha256_calc) { sha256_calc.begin(); uint8_t b[SPI_FLASH_SEC_SIZE]; - if(b == nullptr) { - DEBUG_VERBOSE("ESP32::SHA256 Not enough memory to allocate buffer"); - return; // TODO error reporting - } uint32_t read_bytes = 0; uint32_t const app_size = ESP.getSketchSize();