Skip to content

Commit ea5c5eb

Browse files
committed
Fix clang-tidy warning
1 parent 5ce4a18 commit ea5c5eb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/bootloader/bootloader.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,10 +408,8 @@ static size_t _api_write_chunk(const uint8_t* buf, uint8_t chunknum, uint8_t* ou
408408

409409
// Erase is handled inside of flash_write
410410
if (flash_write(
411-
&FLASH_0,
412-
FLASH_APP_START + (chunknum * FIRMWARE_CHUNK_LEN),
413-
(const uint8_t*)buf,
414-
FIRMWARE_CHUNK_LEN) != ERR_NONE) {
411+
&FLASH_0, FLASH_APP_START + (chunknum * FIRMWARE_CHUNK_LEN), buf, FIRMWARE_CHUNK_LEN) !=
412+
ERR_NONE) {
415413
return _report_status(OP_STATUS_ERR_WRITE, output);
416414
}
417415

0 commit comments

Comments
 (0)