break;
default:
- fprintf(stderr, "The subsystem type is not supported yet\n");
continue;
}
closedir(sysdir);
free(local_devices);
+ if (*device == NULL)
+ return -ENODEV;
return 0;
free_devices:
break;
default:
- fprintf(stderr, "The subsystem type is not supported yet\n");
continue;
}