Skip to content

Commit 72de208

Browse files
committed
PCI: j721e: Drop pointless of_device_get_match_data() cast
of_device_get_match_data() returns "void *", so no cast is needed when assigning the result to a pointer type. Drop the unnecessary cast. Link: https://lore.kernel.org/r/20211223011054.1227810-9-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Cc: Kishon Vijay Abraham I <kishon@ti.com> Cc: Tom Joseph <tjoseph@cadence.com>
1 parent a622435 commit 72de208

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pci/controller/cadence/pci-j721e.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
354354
struct device *dev = &pdev->dev;
355355
struct device_node *node = dev->of_node;
356356
struct pci_host_bridge *bridge;
357-
struct j721e_pcie_data *data;
357+
const struct j721e_pcie_data *data;
358358
struct cdns_pcie *cdns_pcie;
359359
struct j721e_pcie *pcie;
360360
struct cdns_pcie_rc *rc;
@@ -367,7 +367,7 @@ static int j721e_pcie_probe(struct platform_device *pdev)
367367
int ret;
368368
int irq;
369369

370-
data = (struct j721e_pcie_data *)of_device_get_match_data(dev);
370+
data = of_device_get_match_data(dev);
371371
if (!data)
372372
return -EINVAL;
373373

0 commit comments

Comments
 (0)