summaryrefslogtreecommitdiffstats
path: root/src/modules/hal-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-09-08 23:48:47 +0200
committerLennart Poettering <lennart@poettering.net>2009-09-08 23:48:47 +0200
commit157ec797dd53e1fb3d14f44c991064b0a2dee8e2 (patch)
treec4e63cccea6a63a68f0244d816fbfc3fad8d3d5b /src/modules/hal-util.c
parent1380f18e52db48f61fd8582c59e52281728f22b7 (diff)
hal: check properly for failure of libhal_find_device_by_capability() (llvm-clang-analyzer)
Diffstat (limited to 'src/modules/hal-util.c')
-rw-r--r--src/modules/hal-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/hal-util.c b/src/modules/hal-util.c
index e2a2d8d7..2d59f51d 100644
--- a/src/modules/hal-util.c
+++ b/src/modules/hal-util.c
@@ -65,7 +65,7 @@ int pa_hal_get_info(pa_core *core, pa_proplist *p, int card) {
goto finish;
}
- if (!(udis = libhal_find_device_by_capability(hal, "sound", &n, &error)) < 0) {
+ if (!(udis = libhal_find_device_by_capability(hal, "sound", &n, &error))) {
pa_log_error("Couldn't find devices: %s: %s", error.name, error.message);
goto finish;
}