diff options
author | Lennart Poettering <lennart@poettering.net> | 2019-07-11 15:42:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2019-07-11 23:20:31 +0200 |
commit | 66855de739dad2ca4fc24f353637fb2757e542ae (patch) | |
tree | 40a743abe8ec511b21a07cc4158d8da21af43746 /src/udev | |
parent | fed813778fb89d2c7890845a2e35bca95d4897cf (diff) | |
download | systemd-66855de739dad2ca4fc24f353637fb2757e542ae.tar.gz |
tree-wide: make use of errno_or_else() everywhere
Diffstat (limited to 'src/udev')
-rw-r--r-- | src/udev/udev-builtin-blkid.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index efbb0732f1..7ef75e6f91 100644 --- a/src/udev/udev-builtin-blkid.c +++ b/src/udev/udev-builtin-blkid.c @@ -20,6 +20,7 @@ #include "blkid-util.h" #include "device-util.h" #include "efivars.h" +#include "errno-util.h" #include "fd-util.h" #include "gpt.h" #include "parse-util.h" @@ -113,7 +114,7 @@ static int find_gpt_root(sd_device *dev, blkid_probe pr, bool test) { errno = 0; pl = blkid_probe_get_partitions(pr); if (!pl) - return -errno ?: -ENOMEM; + return errno_or_else(ENOMEM); nvals = blkid_partlist_numof_partitions(pl); for (i = 0; i < nvals; i++) { |