Remove redundant mem-check.

This commit is contained in:
Jan Egil Ruud 2022-12-01 20:12:26 +01:00
parent dc64fb716f
commit 8db18e64ed
1 changed files with 1 additions and 1 deletions

View File

@ -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;