* grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0

check.

	Saves 10 bytes on compressed image.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2013-10-21 13:40:05 +02:00
parent 00f72e890b
commit ac1feb61d2
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
check.
Saves 10 bytes on compressed image.
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/misc.c (grub_isprint): Move to ...

View file

@ -371,7 +371,8 @@ grub_strtoull (const char *str, char **end, int base)
int found = 0;
/* Skip white spaces. */
while (*str && grub_isspace (*str))
/* grub_isspace checks that *str != '\0'. */
while (grub_isspace (*str))
str++;
/* Guess the base, if not specified. The prefix `0x' means 16, and