spot the first problem

This commit is contained in:
Denis 2023-12-07 23:55:33 +01:00
parent 743739483e
commit f8e7bc6036
No known key found for this signature in database
GPG key ID: DD9B63F805CF5C03

View file

@ -57,9 +57,10 @@ int dev_evdev_open(
int open_sysfs_idx = -1; int open_sysfs_idx = -1;
res = pthread_mutex_lock(&input_acquire_mutex); const int mutex_lock_res = pthread_mutex_lock(&input_acquire_mutex);
if (res != 0) { if (mutex_lock_res != 0) {
fprintf(stderr, "Cannot lock input mutex: %d\n", res); fprintf(stderr, "Cannot lock input mutex: %d\n", mutex_lock_res);
res = mutex_lock_res;
goto dev_evdev_open_err; goto dev_evdev_open_err;
} }