[PATCH 2/2] lib/strtox: remove unnecessary islower()

Sam Ravnborg sam at ravnborg.org
Sat Apr 15 01:24:44 PDT 2017


On Tue, Apr 11, 2017 at 08:39:34AM +0200, Sascha Hauer wrote:
> toupper() does the right thing, no need to test for islower()
> beforehand, so
> 
> islower(*cp) ? toupper(*cp) : *cp
> 
> can be simplified to:
> 
> toupper(*cp)
> 
> Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
Acked-by: Sam Ravnborg <sam at ravnborg.org>



More information about the barebox mailing list