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:
Hans Petter Selasky 2021-05-21 10:20:34 +02:00
parent 488f39f355
commit 8d8bfdf20d

View file

@ -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;