Rework for-loop in EPOCH(9) to reduce indentation level.

No functional change intended.

MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2021-05-21 10:20:34 +02:00
parent 209d4919c5
commit cc9bb7a9b8

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;