Attribute existence is dependent on kernel versions. Don't automatically
warn if we fail to find the attribute, let the caller decide how to deal
with it.
Reported-by: Jeffrey Lien <Jeff.Lien@wdc.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
goto err_free_path;
fd = open(attrpath, O_RDONLY);
- if (fd < 0) {
- fprintf(stderr, "Failed to open %s: %s\n",
- attrpath, strerror(errno));
+ if (fd < 0)
goto err_free_value;
- }
ret = read(fd, value, 1024);
if (ret < 0) {