]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 21 Oct 2013 11:40:05 +0000 (13:40 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 21 Oct 2013 11:40:05 +0000 (13:40 +0200)
check.

Saves 10 bytes on compressed image.

ChangeLog
grub-core/kern/misc.c

index 7c84c6eaea8a83e2ea198ad0376eb36f80e75597..fef02b0cacba2ccc1ed16567f147fcdb3fcda6e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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 ...
index 5fe416477d5cbb208c0ee2131d25d5c6584a66a8..be79dfdc497f912a9eb4d1956c40e3a15fee1e4d 100644 (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