spot the first problem
This commit is contained in:
parent
743739483e
commit
f8e7bc6036
1 changed files with 4 additions and 3 deletions
|
|
@ -57,9 +57,10 @@ int dev_evdev_open(
|
|||
|
||||
int open_sysfs_idx = -1;
|
||||
|
||||
res = pthread_mutex_lock(&input_acquire_mutex);
|
||||
if (res != 0) {
|
||||
fprintf(stderr, "Cannot lock input mutex: %d\n", res);
|
||||
const int mutex_lock_res = pthread_mutex_lock(&input_acquire_mutex);
|
||||
if (mutex_lock_res != 0) {
|
||||
fprintf(stderr, "Cannot lock input mutex: %d\n", mutex_lock_res);
|
||||
res = mutex_lock_res;
|
||||
goto dev_evdev_open_err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue