Re: [patch] sparc: leon: Fix a retry loop in leon_init_timers()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
Date: Fri, 25 Nov 2016 14:25:54 +0300

> 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 <dan.carpenter@xxxxxxxxxx>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux