commit | 1c531b65b7bf923fce64bc14999e25d7ddad3243 | [log] [tgz] |
---|---|---|
author | qctecmdr <qctecmdr@localhost> | Fri Jun 02 06:00:57 2023 -0700 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Fri Jun 02 06:00:57 2023 -0700 |
tree | 34b6c757b922253ee2a6f6a5ef43dd25a12bd4ac | |
parent | c34eca72d2159a829959630972eb318c270478bf [diff] | |
parent | 19532da7ddb6c283547c029f9316c9976039e418 [diff] |
Merge "hal: sndmonitor: Fix kw issue in sndmonitor"
diff --git a/hal/audio_extn/sndmonitor.c b/hal/audio_extn/sndmonitor.c index a0bd6d3..6fa7396 100644 --- a/hal/audio_extn/sndmonitor.c +++ b/hal/audio_extn/sndmonitor.c
@@ -159,11 +159,11 @@ s->fd = fd; // dup? char *state = read_state(fd); -#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) if (!state) { free(s); return -1; } +#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 15, 0)) bool online = state && !strcmp(state, "ONLINE"); if (state)