mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
irqchip/aclint-sswi: Reduce data scope
Move variables to the innermost scope where they are used Signed-off-by: Vladimir Kondratiev <vladimir.kondratiev@mobileye.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/20250612143911.3224046-7-vladimir.kondratiev@mobileye.com
This commit is contained in:
parent
93406e3742
commit
c8c8443a64
|
|
@ -61,18 +61,18 @@ static int aclint_sswi_dying_cpu(unsigned int cpu)
|
|||
|
||||
static int __init aclint_sswi_parse_irq(struct fwnode_handle *fwnode, void __iomem *reg)
|
||||
{
|
||||
struct of_phandle_args parent;
|
||||
unsigned long hartid;
|
||||
u32 contexts, i;
|
||||
int rc, cpu;
|
||||
u32 contexts = of_irq_count(to_of_node(fwnode));
|
||||
|
||||
contexts = of_irq_count(to_of_node(fwnode));
|
||||
if (!(contexts)) {
|
||||
pr_err("%pfwP: no ACLINT SSWI context available\n", fwnode);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
for (i = 0; i < contexts; i++) {
|
||||
for (u32 i = 0; i < contexts; i++) {
|
||||
struct of_phandle_args parent;
|
||||
unsigned long hartid;
|
||||
int rc, cpu;
|
||||
|
||||
rc = of_irq_parse_one(to_of_node(fwnode), i, &parent);
|
||||
if (rc)
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user