diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-06-21 21:58:13 +0000 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-06-22 00:17:00 +0200 |
commit | e2fc15ae0eb190c0b71f7c06e9ff98f859441df5 (patch) | |
tree | 21d709dc459b44e8d11f5318a4c2751c379fcac7 | |
parent | 500c10f191010684161d57aaabf4147b53322b8c (diff) | |
download | gnu-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -305,7 +305,7 @@ Atoi ( CHAR16 c; // skip preceeding white space - while (*str && *str == ' ') { + while (*str == ' ') { str += 1; } |