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,7 +259,9 @@ 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))
continue;
stage = 0; stage = 0;
for (tc = probe->trigger; *tc; tc++) { for (tc = probe->trigger; *tc; tc++) {
trigger_mask[stage] |= probe_bit; trigger_mask[stage] |= probe_bit;
@ -270,7 +272,6 @@ static int configure_probes(GSList *probes)
return SIGROK_ERR; return SIGROK_ERR;
} }
} }
}
if (stage == -1) if (stage == -1)
/* /*