[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <564ffff9-6043-7191-2458-f425dd8d0c11@web.de>
Date: Wed, 1 Jul 2020 10:40:35 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Tiezhu Yang <yangtiezhu@...ngson.cn>,
Thomas Gleixner <tglx@...utronix.de>,
Jason Cooper <jason@...edaemon.net>,
Marc Zyngier <maz@...nel.org>, Guo Ren <guoren@...nel.org>,
linux-csky@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH v4 02/14] irqchip/csky-apb-intc: Fix potential resource
leaks
> … were not released in a few error cases. …
Another small wording adjustment:
… in two error cases. …
…
> +++ b/drivers/irqchip/irq-csky-apb-intc.c
…
> @@ -126,10 +127,17 @@ ck_intc_init_comm(struct device_node *node, struct device_node *parent)
…
> +err_iounmap:
> + iounmap(reg_base);
> + return ret;
> }
…
How do you think about to use the statement “return -ENOMEM;”?
Can the local variable “ret” be omitted in this function implementation?
Regards,
Markus
Powered by blists - more mailing lists