diff options
Diffstat (limited to 'src/flash/nor/numicro.c')
-rw-r--r-- | src/flash/nor/numicro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/numicro.c b/src/flash/nor/numicro.c index e8e2d74..ce3973b 100644 --- a/src/flash/nor/numicro.c +++ b/src/flash/nor/numicro.c @@ -1386,7 +1386,7 @@ static int numicro_writeblock(struct flash_bank *bank, const uint8_t *buffer, init_reg_param(®_params[2], "r2", 32, PARAM_OUT); /* number of words to program */ struct armv7m_common *armv7m = target_to_armv7m(target); - if (armv7m == NULL) { + if (!armv7m) { /* something is very wrong if armv7m is NULL */ LOG_ERROR("unable to get armv7m target"); return retval; |