diff options
author | Kay Sievers <kay@vrfy.org> | 2012-04-13 15:08:55 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-04-13 15:10:12 +0200 |
commit | b49d9b50cfd377f28de0886330ba7bbd231fb472 (patch) | |
tree | 19135b6b49048e05a884efa07454ee1728d094b4 /src/udev/udev-builtin-blkid.c | |
parent | 7ea07dcddafe573c699fc48171b57b912897e7e2 (diff) |
udev: fix a few issues detected by the llvm static analyzer
Diffstat (limited to 'src/udev/udev-builtin-blkid.c')
-rw-r--r-- | src/udev/udev-builtin-blkid.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/udev/udev-builtin-blkid.c b/src/udev/udev-builtin-blkid.c index c6dee9c3cf..fdc68d00a8 100644 --- a/src/udev/udev-builtin-blkid.c +++ b/src/udev/udev-builtin-blkid.c @@ -150,10 +150,8 @@ static int builtin_blkid(struct udev_device *dev, int argc, char *argv[], bool t } pr = blkid_new_probe(); - if (!pr) { - err = -ENOMEM; + if (!pr) return EXIT_FAILURE; - } blkid_probe_set_superblocks_flags(pr, BLKID_SUBLKS_LABEL | BLKID_SUBLKS_UUID | |