mirror of
https://github.com/systemd/systemd.git
synced 2025-01-23 02:04:32 +03:00
libudev-hwdb: use assert_return_errno()
This commit is contained in:
parent
68b80b8557
commit
2b19953a0d
@ -104,10 +104,8 @@ _public_ struct udev_list_entry *udev_hwdb_get_properties_list_entry(struct udev
|
||||
const char *key, *value;
|
||||
struct udev_list_entry *e;
|
||||
|
||||
if (!hwdb || !modalias) {
|
||||
errno = EINVAL;
|
||||
return NULL;
|
||||
}
|
||||
assert_return_errno(hwdb, NULL, EINVAL);
|
||||
assert_return_errno(modalias, NULL, EINVAL);
|
||||
|
||||
udev_list_cleanup(&hwdb->properties_list);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user