Unless the number of rounds is secret, this does indeed not represent a secret-dependent branch.
(If the number of rounds is secret, a chap named AugusteAuguste would like to have a word with you. Hope you speak French or Dutch as they were spoken a century ago.)