- ssnprintf(filename, sizeof(filename), "%s/%s/%s", dir, power_supply,
- basename);
-
- /* No file isn't the end of the world -- not every system will be
- * reporting the same set of statistics */
- if (access(filename, R_OK) != 0)
- return ENOENT;
+ snprintf(filename, sizeof(filename), "%s/%s/%s", dir, power_supply, basename);