From: Dan Carpenter Date: Fri, 25 Nov 2016 11:25:54 +0000 (+0300) Subject: sparc: leon: Fix a retry loop in leon_init_timers() X-Git-Tag: v3.2.87~161 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5980435b45c75ce52e67565120cc6087b6c30793;p=pandora-kernel.git sparc: leon: Fix a retry loop in leon_init_timers() commit 601e6e3cc5bf6adb7d076fe24d10f6191a25ba9b upstream. The original code causes a static checker warning because it has a continue inside a do { } while (0); loop. In that context, a continue and a break are equivalent. The intent was to go back to the start of the loop so the continue was a bug. I've added a retry label at the start and changed the continue to a goto retry. Then I removed the do { } while (0) loop and pulled the code in one indent level. Fixes: 2791c1a43900 ("SPARC/LEON: added support for selecting Timer Core and Timer within core") Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed