fdt: silence clang warning.

This commit is contained in:
Vladimir Serbinenko 2017-07-10 01:34:22 +00:00
parent cb8b7e4e36
commit 68d54b55f4

View file

@ -309,7 +309,8 @@ advance_token (const void *fdt, const grub_uint32_t *token, const grub_uint32_t
continue;
}
char *ptr;
for (ptr = (char *) (token + 1); *ptr && ptr < (char *) end; ptr++);
for (ptr = (char *) (token + 1); *ptr && ptr < (char *) end; ptr++)
;
if (ptr >= (char *) end)
return 0;
return token;