Skip to content

Commit bcdeae7

Browse files
jamesequinlanpopcornmix
authored andcommitted
PCI: brcmstb: Cast an int variable to an irq_hw_number_t
Just make it clear to the reader that there is a conversion happening, in this case from an int type to an irq_hw_number_t, an unsigned long int. Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
1 parent 97ad2e0 commit bcdeae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/controller/pcie-brcmstb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ static int brcm_irq_domain_alloc(struct irq_domain *domain, unsigned int virq,
560560
return hwirq;
561561

562562
for (i = 0; i < nr_irqs; i++)
563-
irq_domain_set_info(domain, virq + i, hwirq + i,
563+
irq_domain_set_info(domain, virq + i, (irq_hw_number_t)hwirq + i,
564564
&brcm_msi_bottom_irq_chip, domain->host_data,
565565
handle_edge_irq, NULL, NULL);
566566
return 0;

0 commit comments

Comments
 (0)