Skip to content

Commit 1e3d7d5

Browse files
committed
Delete nullptr check on local fixed size array
1 parent 335daf8 commit 1e3d7d5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Diff for: src/ota/implementation/OTAEsp32.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,6 @@ void ESP32OTACloudProcess::calculateSHA256(SHA256& sha256_calc) {
8989
sha256_calc.begin();
9090

9191
uint8_t b[SPI_FLASH_SEC_SIZE];
92-
if(b == nullptr) {
93-
DEBUG_VERBOSE("ESP32::SHA256 Not enough memory to allocate buffer");
94-
return; // TODO error reporting
95-
}
9692

9793
uint32_t read_bytes = 0;
9894
uint32_t const app_size = ESP.getSketchSize();

0 commit comments

Comments
 (0)