Felix Singer has uploaded this change for review.

View Change

jlink_spi.c: Set `use_serial_number` to false by default

Signed-off-by: Felix Singer <felixsinger@posteo.net>
Change-Id: I83b5e651097d1a248baf5ddb6b09e5cff161317d
---
M jlink_spi.c
1 file changed, 11 insertions(+), 3 deletions(-)

git pull ssh://review.coreboot.org:29418/flashrom refs/changes/81/67881/1
diff --git a/jlink_spi.c b/jlink_spi.c
index 52fc786..21d124f 100644
--- a/jlink_spi.c
+++ b/jlink_spi.c
@@ -227,7 +227,7 @@
free(arg);

int ret;
- bool use_serial_number;
+ bool use_serial_number = false;
uint32_t serial_number;

arg = extract_programmer_param_str(cfg, "serial");
@@ -252,8 +252,6 @@
}

use_serial_number = true;
- } else {
- use_serial_number = false;
}

free(arg);

To view, visit change 67881. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I83b5e651097d1a248baf5ddb6b09e5cff161317d
Gerrit-Change-Number: 67881
Gerrit-PatchSet: 1
Gerrit-Owner: Felix Singer <felixsinger@posteo.net>
Gerrit-MessageType: newchange