diff options
Diffstat (limited to 'src/flash/nor/niietcm4.c')
-rw-r--r-- | src/flash/nor/niietcm4.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/niietcm4.c b/src/flash/nor/niietcm4.c index d485694..b266803 100644 --- a/src/flash/nor/niietcm4.c +++ b/src/flash/nor/niietcm4.c @@ -1394,7 +1394,7 @@ static int niietcm4_write(struct flash_bank *bank, const uint8_t *buffer, int rem = count % 16; if (rem) { new_buffer = malloc(count + 16 - rem); - if (new_buffer == NULL) { + if (!new_buffer) { LOG_ERROR("Odd number of words to write and no memory for padding buffer"); return ERROR_FAIL; } |