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:
@@ -93,8 +93,7 @@ setup_mount_matrix (GUdevDevice *device)
|
||||
}
|
||||
|
||||
g_debug ("Failed to auto-detect mount matrix, falling back to identity");
|
||||
parse_mount_matrix (NULL, &ret);
|
||||
return ret;
|
||||
return get_id_matrix ();
|
||||
}
|
||||
|
||||
static char **
|
||||
|
Reference in New Issue
Block a user