lib/strtox: remove unnecessary islower()
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@pengutronix.de>
1 parent 00522e6 commit b612a54cec72fe5bd6ce22623e157c1787e167f1
@Sascha Hauer Sascha Hauer authored on 11 Apr 2017
Showing 1 changed file
View
lib/strtox.c