mount-matrix: Fix unchecked return value

From Coverity:
iio-sensor-proxy-3.3/src/accel-mount-matrix.c:86: check_return: Calling "parse_mount_matrix" without checking return value (as is done elsewhere 10 out of 11 times).
This commit is contained in:
Bastien Nocera
2022-03-25 12:11:54 +01:00
parent 6a4d5fab95
commit a4b1f3ee09

View File

@@ -93,8 +93,7 @@ setup_mount_matrix (GUdevDevice *device)
} }
g_debug ("Failed to auto-detect mount matrix, falling back to identity"); g_debug ("Failed to auto-detect mount matrix, falling back to identity");
parse_mount_matrix (NULL, &ret); return get_id_matrix ();
return ret;
} }
static char ** static char **