diff options
Diffstat (limited to 'src/soc/intel')
-rw-r--r-- | src/soc/intel/xeon_sp/chip_common.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/soc/intel/xeon_sp/chip_common.c b/src/soc/intel/xeon_sp/chip_common.c index d8e7d143b0..d0eab02972 100644 --- a/src/soc/intel/xeon_sp/chip_common.c +++ b/src/soc/intel/xeon_sp/chip_common.c @@ -136,11 +136,7 @@ int iio_pci_domain_socket_from_dev(const struct device *dev) const struct device *domain; union xeon_domain_path dn; - if (dev->path.type == DEVICE_PATH_DOMAIN) - domain = dev; - else - domain = dev_get_domain(dev); - + domain = dev_get_domain(dev); if (!domain) return -1; @@ -162,11 +158,7 @@ int iio_pci_domain_stack_from_dev(const struct device *dev) const struct device *domain; union xeon_domain_path dn; - if (dev->path.type == DEVICE_PATH_DOMAIN) - domain = dev; - else - domain = dev_get_domain(dev); - + domain = dev_get_domain(dev); if (!domain) return -1; |