target/sam3x: saner uninitialized variable prevention

Signed-off-by: Rafael Silva <perigoso@riseup.net>
This commit is contained in:
Rafael Silva 2022-06-27 11:25:02 +01:00 committed by Rachel Mant
parent 2ef4269b0e
commit 1bca0323d9
1 changed files with 3 additions and 0 deletions

View File

@ -622,6 +622,9 @@ static bool sam_cmd_gpnvm(target *t, int argc, const char **argv)
gpnvm_mask = 0x1BF;
base = SAMX7X_EEFC_BASE;
break;
default:
/* unknown / invalid driver*/
goto bad_usage;
}
uint32_t mask = 0, values = 0;