Re: [PATCH v4 02/14] irqchip/csky-apb-intc: Fix potential resource leaks

From: Markus Elfring
Date: Thu Jul 02 2020 - 03:19:49 EST


>>> +++ b/drivers/irqchip/irq-csky-apb-intc.c
â
>> I suggest to recheck the parameter alignment for such a function call.
>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?id=7c30b859a947535f2213277e827d7ac7dcff9c84#n93
>
> OK, thank you, like this:
>
> -ÂÂÂÂÂÂ ret = irq_alloc_domain_generic_chips(root_domain, 32, 1,
> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ "csky_intc", handle_level_irq,
> -ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN, 0, 0);
> -ÂÂÂÂÂÂ if (ret) {
> +ÂÂÂÂÂÂ if (irq_alloc_domain_generic_chips(root_domain, 32, 1,
> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ "csky_intc", handle_level_irq,
> +ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ IRQ_NOREQUEST | IRQ_NOPROBE | IRQ_NOAUTOEN, 0, 0)) {
> ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ pr_err("C-SKY Intc irq_alloc_gc failed.\n");
â

Would you like to use also horizontal tab characters for the corresponding indentation?

Regards,
Markus