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;
probe_bit = 1 << (probe->index - 1);
probe_mask |= probe_bit;
if (probe->trigger) {
stage = 0;
for (tc = probe->trigger; *tc; tc++) {
trigger_mask[stage] |= probe_bit;
if (*tc == '1')
trigger_value[stage] |= probe_bit;
stage++;
if (stage > NUM_TRIGGER_STAGES)
return SIGROK_ERR;
}
if (!(probe->trigger))
continue;
stage = 0;
for (tc = probe->trigger; *tc; tc++) {
trigger_mask[stage] |= probe_bit;
if (*tc == '1')
trigger_value[stage] |= probe_bit;
stage++;
if (stage > NUM_TRIGGER_STAGES)
return SIGROK_ERR;
}
}