mirror of
https://github.com/rhboot/gnu-efi
synced 2026-08-26 00:26:04 -04:00
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>
This commit is contained in:
parent
500c10f191
commit
e2fc15ae0e
1 changed files with 1 additions and 1 deletions
|
|
@ -305,7 +305,7 @@ Atoi (
|
|||
CHAR16 c;
|
||||
|
||||
// skip preceeding white space
|
||||
while (*str && *str == ' ') {
|
||||
while (*str == ' ') {
|
||||
str += 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue