diff options
Diffstat (limited to 'lib/sysfs_bus.c')
-rw-r--r-- | lib/sysfs_bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sysfs_bus.c b/lib/sysfs_bus.c index 821938c..89105b9 100644 --- a/lib/sysfs_bus.c +++ b/lib/sysfs_bus.c @@ -121,7 +121,7 @@ struct dlist *sysfs_get_bus_devices(struct sysfs_bus *bus) return NULL; } - if (devdir->links != 0) { + if (devdir->links != NULL) { dlist_for_each_data(devdir->links, curl, struct sysfs_link) { bdev = sysfs_open_device_path(curl->target); if (bdev == NULL) { |