summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/tests
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/xe/tests')
-rw-r--r--drivers/gpu/drm/xe/tests/xe_pci.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_pci.c b/drivers/gpu/drm/xe/tests/xe_pci.c
index 2178ad71c0da..a40879da2fbe 100644
--- a/drivers/gpu/drm/xe/tests/xe_pci.c
+++ b/drivers/gpu/drm/xe/tests/xe_pci.c
@@ -139,9 +139,6 @@ int xe_pci_fake_device_init(struct xe_device *xe, enum xe_platform platform,
if (subplatform_desc->subplatform == subplatform)
break;
- if (subplatform == XE_SUBPLATFORM_NONE && subplatform_desc)
- return -ENODEV;
-
if (subplatform != XE_SUBPLATFORM_NONE && !subplatform_desc)
return -ENODEV;