Skip to content
Snippets Groups Projects
Commit 1c531b65 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: sndmonitor: Fix kw issue in sndmonitor"

parents c34eca72 19532da7
No related branches found
No related tags found
No related merge requests found
......@@ -159,11 +159,11 @@ static int add_new_sndcard(int card, int fd)
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment