From: Volker Lendecke Date: Wed, 10 Aug 2011 17:46:00 +0000 (+0200) Subject: tally: Adapt renormalize to Samba coding conventions X-Git-Url: https://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=e74c8a2bdf3e8ef45294d2b656150c07c4ca6294;hp=a062738ac042002d51fdc3302a96fb7803aa2708 tally: Adapt renormalize to Samba coding conventions (Imported from SAMBA commit 1fa4236c40a727d7ae648e12d14d1f0f9fcf79b5) --- diff --git a/ccan/tally/tally.c b/ccan/tally/tally.c index 4ece2364..4c5e37e9 100644 --- a/ccan/tally/tally.c +++ b/ccan/tally/tally.c @@ -88,8 +88,9 @@ static void renormalize(struct tally *tally, unsigned int i, old_min; /* Uninitialized? Don't do anything... */ - if (tally->max < tally->min) + if (tally->max < tally->min) { goto update; + } /* If we don't have sufficient range, increase step bits until * buckets cover entire range of ssize_t anyway. */