[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231201201146.12aa16df@kernel.org>
Date: Fri, 1 Dec 2023 20:11:46 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Haoran Liu <liuhaoran14@....com>
Cc: davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
heiko@...ech.de, netdev@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [net/ethernet] arc_emac: Add error handling in
emac_rockchip_probe
On Wed, 29 Nov 2023 19:13:18 -0800 Haoran Liu wrote:
> Although the error addressed by this patch may not occur in the current
> environment, I still suggest implementing these error handling routines
> if the function is not highly time-sensitive. As the environment evolves
> or the code gets reused in different contexts, there's a possibility that
> these errors might occur. Addressing them now can prevent potential
> debugging efforts in the future, which could be quite resource-intensive.
Please skip this pointless boilerplate.
> match = of_match_node(emac_rockchip_dt_ids, dev->of_node);
> + if (!match) {
> + dev_err(dev, "No matching device found\n");
> + return -ENODEV;
"device" and ENODEV are not right here.
--
pw-bot: cr
Powered by blists - more mailing lists