]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib: simplify cpuset if clauses that return
authorSami Kerola <kerolasa@iki.fi>
Mon, 29 May 2017 17:39:22 +0000 (18:39 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 14 Jun 2017 10:22:54 +0000 (12:22 +0200)
commit35e82b2926537c0e7264f84b38045b522fa82003
treeeb290eb520bd52ab015ce416da8c3f313b62c940
parentf4d37838673f022c8c05c4beb5057bdb683a76ca
lib: simplify cpuset if clauses that return

There is no need for 'else' when 'if' will return.  In same go move call of
tolower() to last possible moment in char_to_val(), a lot of time hex values
should hit 0-9 range, and it can be omitted.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/cpuset.c