Skip to content

Commit

Permalink
Delete nullptr check on local fixed size array
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed May 27, 2024
1 parent 335daf8 commit 1e3d7d5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ota/implementation/OTAEsp32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1e3d7d5

Please sign in to comment.