Skip to content

Commit

Permalink
Merge pull request #470 from pennam/nullcheck
Browse files Browse the repository at this point in the history
Delete nullptr check on local fixed size array
  • Loading branch information
pennam authored May 27, 2024
2 parents 06613dd + 1e3d7d5 commit 2c65e9b
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 2c65e9b

Please sign in to comment.