From 8db18e64edb0ec35c2d88f4349973b7fa43a7b78 Mon Sep 17 00:00:00 2001 From: Jan Egil Ruud Date: Thu, 1 Dec 2022 20:12:26 +0100 Subject: [PATCH] Remove redundant mem-check. --- src/avrcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avrcache.c b/src/avrcache.c index 3215d720..7a57edb8 100644 --- a/src/avrcache.c +++ b/src/avrcache.c @@ -378,7 +378,7 @@ int avr_flush_cache(const PROGRAMMER *pgm, const AVRPART *p) { return LIBAVRDUDE_GENERAL_FAILURE; } - if(chiperase || !mem || mems[i].zopaddr < 0) + if(chiperase || mems[i].zopaddr < 0) continue; int n=mems[i].zopaddr;