aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/avrf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/avrf.c')
-rw-r--r--src/flash/nor/avrf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/avrf.c b/src/flash/nor/avrf.c
index 51f8d47..4fa4e0d 100644
--- a/src/flash/nor/avrf.c
+++ b/src/flash/nor/avrf.c
@@ -332,7 +332,7 @@ static int avrf_probe(struct flash_bank *bank)
}
}
- if (avr_info != NULL) {
+ if (avr_info) {
free(bank->sectors);
/* chip found */
@@ -398,7 +398,7 @@ static int avrf_info(struct flash_bank *bank, struct command_invocation *cmd)
}
}
- if (avr_info != NULL) {
+ if (avr_info) {
/* chip found */
command_print_sameline(cmd, "%s - Rev: 0x%" PRIx32 "", avr_info->name,
EXTRACT_VER(device_id));