Small optimizations
1. "STRLEN(path) == 0" -> "*path == '\0'"
2. remove unused variable
3. reduce FILE_ID_T structure size on 32-bit
 platform from 64 to 56 bytes

Change-Id: Iedc031ad4df4ccfb58faaa3fe40035053013cf3e