d/psvr: Don't report created device if creation failed

This commit is contained in:
Christoph Haag 2021-03-02 13:34:54 +01:00 committed by Jakob Bornecrantz
parent ea404a265b
commit 92d94ddcc7

View file

@ -114,6 +114,10 @@ psvr_prober_autoprobe(struct xrt_auto_prober *xap,
hid_free_enumeration(devs);
if (!dev) {
return 0;
}
out_xdevs[0] = dev;
return 1;
}