- /* pass the net class as it is */
- if (strcmp(dent->d_name, "net") == 0)
- device_list_insert(dirname2, "net", &device_list);
- else if (has_devt(dirname2))
- device_list_insert(dirname2, dent->d_name, &device_list);
+ if (has_devt(dirname2) || strcmp(dent->d_name, "net") == 0)
+ device_list_insert(dirname2, dent->d_name, device_list);