Cosmetics: Reduce nesting level a bit.

This commit is contained in:
Uwe Hermann 2010-05-17 23:59:56 +02:00
parent 9a5c6dcf49
commit 989938f6cd
1 changed files with 11 additions and 10 deletions

View File

@ -259,16 +259,17 @@ static int configure_probes(GSList *probes)
continue; continue;
probe_bit = 1 << (probe->index - 1); probe_bit = 1 << (probe->index - 1);
probe_mask |= probe_bit; probe_mask |= probe_bit;
if (probe->trigger) { if (!(probe->trigger))
stage = 0; continue;
for (tc = probe->trigger; *tc; tc++) {
trigger_mask[stage] |= probe_bit; stage = 0;
if (*tc == '1') for (tc = probe->trigger; *tc; tc++) {
trigger_value[stage] |= probe_bit; trigger_mask[stage] |= probe_bit;
stage++; if (*tc == '1')
if (stage > NUM_TRIGGER_STAGES) trigger_value[stage] |= probe_bit;
return SIGROK_ERR; stage++;
} if (stage > NUM_TRIGGER_STAGES)
return SIGROK_ERR;
} }
} }