mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Rework for-loop in EPOCH(9) to reduce indentation level.
No functional change intended.
Sponsored by: Mellanox Technologies // NVIDIA Networking
(cherry picked from commit cc9bb7a9b8)
This commit is contained in:
parent
488f39f355
commit
8d8bfdf20d
1 changed files with 8 additions and 6 deletions
|
|
@ -219,12 +219,14 @@ epoch_trace_enter(struct thread *td, epoch_t epoch, epoch_tracker_t et,
|
|||
{
|
||||
epoch_tracker_t iet;
|
||||
|
||||
SLIST_FOREACH(iet, &td->td_epochs, et_tlink)
|
||||
if (iet->et_epoch == epoch)
|
||||
epoch_trace_report("Recursively entering epoch %s "
|
||||
"at %s:%d, previously entered at %s:%d\n",
|
||||
epoch->e_name, file, line,
|
||||
iet->et_file, iet->et_line);
|
||||
SLIST_FOREACH(iet, &td->td_epochs, et_tlink) {
|
||||
if (iet->et_epoch != epoch)
|
||||
continue;
|
||||
epoch_trace_report("Recursively entering epoch %s "
|
||||
"at %s:%d, previously entered at %s:%d\n",
|
||||
epoch->e_name, file, line,
|
||||
iet->et_file, iet->et_line);
|
||||
}
|
||||
et->et_epoch = epoch;
|
||||
et->et_file = file;
|
||||
et->et_line = line;
|
||||
|
|
|
|||
Loading…
Reference in a new issue