Commit d1f92df6 authored by Volker Lendecke's avatar Volker Lendecke Committed by Rusty Russell

tally: Adapt get_max_bucket to Samba coding conventions

(Imported from SAMBA commit fed977514019e130322fb21ad5726ee997965898)
parent e31e88bc
...@@ -422,9 +422,11 @@ static unsigned get_max_bucket(const struct tally *tally) ...@@ -422,9 +422,11 @@ static unsigned get_max_bucket(const struct tally *tally)
{ {
unsigned int i; unsigned int i;
for (i = tally->buckets; i > 0; i--) for (i = tally->buckets; i > 0; i--) {
if (tally->counts[i-1]) if (tally->counts[i-1]) {
break; break;
}
}
return i; return i;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment