summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-06-21 21:58:13 +0000
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2021-06-22 00:17:00 +0200
commite2fc15ae0eb190c0b71f7c06e9ff98f859441df5 (patch)
tree21d709dc459b44e8d11f5318a4c2751c379fcac7
parent500c10f191010684161d57aaabf4147b53322b8c (diff)
downloadgnu-efi-e2fc15ae0eb190c0b71f7c06e9ff98f859441df5.tar.gz
lib/str: simplify Atoi()
Checking that str is non-zero is superfluous in (*str && *str == ' ') 0x20 is always non-zero. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
-rw-r--r--lib/str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/str.c b/lib/str.c
index f3cf89b..6e2e0dc 100644
--- a/lib/str.c
+++ b/lib/str.c
@@ -305,7 +305,7 @@ Atoi (
CHAR16 c;
// skip preceeding white space
- while (*str && *str == ' ') {
+ while (*str == ' ') {
str += 1;
}