font.c: correct checking cache_fd. remove some trailing spaces.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24920 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Teruaki Kawashima 2010-02-26 07:16:32 +00:00
parent 321148124a
commit 3e4b5c69db

View file

@ -615,7 +615,7 @@ void glyph_cache_save(struct font* pf)
lru_traverse(&pf->cache._lru, glyph_file_write);
if (cache_fd < 0)
if (cache_fd >= 0)
{
close(cache_fd);
cache_fd = -1;