+2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
+ \0 checking.
+
+ Saves 70 bytes on compressed image.
+
2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
curn = n++;
- if (*fmt && *fmt =='-')
+ if (*fmt =='-')
fmt++;
p = fmt;
- while (*fmt && grub_isdigit (*fmt))
+ while (grub_isdigit (*fmt))
fmt++;
- if (*fmt && *fmt == '$')
+ if (*fmt == '$')
{
curn = grub_strtoull (p, 0, 10) - 1;
fmt++;
}
- if (*fmt && *fmt =='-')
+ if (*fmt =='-')
fmt++;
- while (*fmt && grub_isdigit (*fmt))
+ while (grub_isdigit (*fmt))
fmt++;
- if (*fmt && *fmt =='.')
+ if (*fmt =='.')
fmt++;
- while (*fmt && grub_isdigit (*fmt))
+ while (grub_isdigit (*fmt))
fmt++;
c = *fmt++;
rescan:;
- if (*fmt && *fmt =='-')
+ if (*fmt =='-')
{
rightfill = 1;
fmt++;