evas xpm loader - don't error print for files that cant be mmaped

no point complaining because we can't mmap... it'd be an unloadable
file.
This commit is contained in:
Carsten Haitzler 2017-07-21 16:35:21 +09:00
parent 64c63f7a53
commit 97c3eedbab
1 changed files with 1 additions and 5 deletions

View File

@ -1723,11 +1723,7 @@ evas_image_load_file_xpm(Eina_File *f, Evas_Image_Property *prop, void *pixels,
if (length < 9) goto on_error;
map = eina_file_map_all(f, load_data ? EINA_FILE_WILLNEED : EINA_FILE_RANDOM);
if (!map)
{
ERR("XPM ERROR: file failed to mmap");
goto on_error;
}
if (!map) goto on_error;
if (strncmp("/* XPM */", map, 9))
{