From: Ian Jackson Date: Fri, 3 Oct 2014 20:43:39 +0000 (+0100) Subject: poll: Avoid duplicate array index counting X-Git-Tag: base.ipv6-polypath-fixes-2.v1~73 X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/commitdiff_plain/d613fd78298a9911b7917c06f3ea11de45462e76?hp=d613fd78298a9911b7917c06f3ea11de45462e76 poll: Avoid duplicate array index counting Calculate remain from idx at the top of the loop. This avoids having to keep both remain and idx in step. Signed-off-by: Ian Jackson ---