mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
t/common: Fix instance get_prober function
This commit is contained in:
parent
b68806956b
commit
4c6b3b4609
|
@ -48,14 +48,18 @@ t_instance(struct xrt_instance *xinst)
|
|||
*
|
||||
*/
|
||||
|
||||
static int
|
||||
static xrt_result_t
|
||||
t_instance_get_prober(struct xrt_instance *xinst, struct xrt_prober **out_xp)
|
||||
{
|
||||
struct t_instance *tinst = t_instance(xinst);
|
||||
|
||||
if (tinst->xp == NULL) {
|
||||
return XRT_ERROR_PROBER_NOT_SUPPORTED;
|
||||
}
|
||||
|
||||
*out_xp = tinst->xp;
|
||||
|
||||
return 0;
|
||||
return XRT_SUCCESS;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue