diff options
author | Lucas De Marchi <[email protected]> | 2023-12-05 05:39:51 -0800 |
---|---|---|
committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:45:23 -0500 |
commit | 1da0e581983c6f212499d44573b23ae48c1a4d00 (patch) | |
tree | c8de7ea93c2a34de96918afddbbe923f09127364 | |
parent | c3ab84efbd05936cfac87ef6801e03534dc4b0b7 (diff) |
drm/xe/kunit: Remove handling of XE_TEST_SUBPLATFORM_ANY
The only user passing XE_TEST_SUBPLATFORM_ANY is
xe_pci_fake_device_init_any(), but then the function would return
earlier when handling XE_TEST_PLATFORM_ANY. Platforms without a
subplatform use XE_SUBPLATFORM_NONE.
Reviewed-by: Matt Roper <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lucas De Marchi <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
-rw-r--r-- | drivers/gpu/drm/xe/tests/xe_pci.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_pci.c b/drivers/gpu/drm/xe/tests/xe_pci.c index d850dca85af1..c1aa785cac18 100644 --- a/drivers/gpu/drm/xe/tests/xe_pci.c +++ b/drivers/gpu/drm/xe/tests/xe_pci.c @@ -128,11 +128,6 @@ int xe_pci_fake_device_init(struct xe_device *xe, enum xe_platform platform, if (!ent->device) return -ENODEV; - if (subplatform == XE_TEST_SUBPLATFORM_ANY) { - subplatform_desc = desc->subplatforms; - goto done; - } - for (subplatform_desc = desc->subplatforms; subplatform_desc && subplatform_desc->subplatform; subplatform_desc++) |