aboutsummaryrefslogtreecommitdiffstats
path: root/dummyflasher.c
diff options
context:
space:
mode:
Diffstat (limited to 'dummyflasher.c')
-rw-r--r--dummyflasher.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/dummyflasher.c b/dummyflasher.c
index 6426ad2e..32a00abb 100644
--- a/dummyflasher.c
+++ b/dummyflasher.c
@@ -1029,13 +1029,9 @@ int probe_variable_size(struct flashctx *flash)
{
unsigned int i;
const struct emu_data *emu_data = get_data_from_context(flash);
- if (!emu_data) {
- msg_perr("No data in flash context!\n");
- return 0;
- }
/* Skip the probing if we don't emulate this chip. */
- if (emu_data->emu_chip != EMULATE_VARIABLE_SIZE)
+ if (!emu_data || emu_data->emu_chip != EMULATE_VARIABLE_SIZE)
return 0;
/*