summaryrefslogtreecommitdiffstats
path: root/src/libudev/libudev-hwdb.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-29 18:40:23 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-11-20 06:38:35 +0100
commitf921b457a784b8f3edffcac7db79c940634c35f9 (patch)
tree98ded313fb8146db733e669631b78a1d18bd2b5e /src/libudev/libudev-hwdb.c
parentlibudev-list: move libudev-list related definitions to libudev-list-internal.h (diff)
downloadsystemd-f921b457a784b8f3edffcac7db79c940634c35f9.tar.xz
systemd-f921b457a784b8f3edffcac7db79c940634c35f9.zip
libudev: coding style fixes
Diffstat (limited to 'src/libudev/libudev-hwdb.c')
-rw-r--r--src/libudev/libudev-hwdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libudev/libudev-hwdb.c b/src/libudev/libudev-hwdb.c
index 33c042c02b..2dd0a8b484 100644
--- a/src/libudev/libudev-hwdb.c
+++ b/src/libudev/libudev-hwdb.c
@@ -112,7 +112,7 @@ _public_ struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev
udev_list_cleanup(&hwdb->properties_list);
SD_HWDB_FOREACH_PROPERTY(hwdb->hwdb, modalias, key, value) {
- if (udev_list_entry_add(&hwdb->properties_list, key, value) == NULL) {
+ if (!udev_list_entry_add(&hwdb->properties_list, key, value)) {
errno = ENOMEM;
return NULL;
}