From 1bca0323d9309813d14f0098f1a98f90772a1db8 Mon Sep 17 00:00:00 2001 From: Rafael Silva Date: Mon, 27 Jun 2022 11:25:02 +0100 Subject: [PATCH] target/sam3x: saner uninitialized variable prevention Signed-off-by: Rafael Silva --- src/target/sam3x.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/target/sam3x.c b/src/target/sam3x.c index 3d46910..fbc2f71 100644 --- a/src/target/sam3x.c +++ b/src/target/sam3x.c @@ -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;