archelp: Never pass NULL as mtime.

Moves complexity from fs code (NULL check) to common code (passing non-NULL).
This commit is contained in:
Vladimir Serbinenko 2015-07-27 13:19:02 +02:00
parent 5fb1e859f7
commit d3b464a7c0

View file

@ -249,9 +249,10 @@ grub_archelp_open (struct grub_archelp_data *data,
while (1)
{
grub_uint32_t mode;
grub_int32_t mtime;
int restart;
if (arcops->find_file (data, &fn, NULL, &mode))
if (arcops->find_file (data, &fn, &mtime, &mode))
goto fail;
if (mode == GRUB_ARCHELP_ATTR_END)