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/[email protected] Signed-off-by: Bjorn Helgaas <[email protected]> Cc: Kishon Vijay Abraham I <[email protected]> Cc: Tom Joseph <[email protected]>
1 parent a622435 commit 72de208

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)