[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7ffeb91e-97b7-4f60-851e-120062b63c17@web.de>
Date: Tue, 21 May 2024 09:33:51 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: Alvin Šipraga <ALSI@...g-olufsen.dk>,
devicetree@...r.kernel.org, linux-sound@...r.kernel.org,
linux-i2c@...r.kernel.org, linux-gpio@...r.kernel.org,
linux-clk@...r.kernel.org, kernel-janitors@...r.kernel.org
Cc: LKML <linux-kernel@...r.kernel.org>, Alvin Šipraga
<alvin@...s.dk>, Emil Abildgaard Svendsen <EMAS@...g-olufsen.dk>,
Andi Shyti <andi.shyti@...nel.org>, Bartosz Golaszewski <brgl@...ev.pl>,
Conor Dooley <conor+dt@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jaroslav Kysela <perex@...ex.cz>, Krzysztof Kozlowski <krzk+dt@...nel.org>,
Liam Girdwood <lgirdwood@...il.com>, Linus Walleij
<linus.walleij@...aro.org>, Mark Brown <broonie@...nel.org>,
Michael Turquette <mturquette@...libre.com>,
"Rafael J. Wysocki" <rafael@...nel.org>, Rob Herring <robh@...nel.org>,
Saravana Kannan <saravanak@...gle.com>, Stephen Boyd <sboyd@...nel.org>,
Takashi Iwai <tiwai@...e.com>
Subject: Re: [PATCH 01/13] a2b: add A2B driver core
>> …
>>> +++ b/drivers/a2b/a2b.c
>>> @@ -0,0 +1,1252 @@
>> …
>>> +static int a2b_bus_of_add_node(struct a2b_bus *bus, struct device_node *np,
>>> + unsigned int addr)
>>> +{
>> …
>>> + node = kzalloc(sizeof(*node), GFP_KERNEL);
>>> + if (IS_ERR(node))
>>> + return -ENOMEM;
>>
>> Please improve the distinction for checks according to the handling of error/null pointers.
>
> Right, I think it returns NULL on error.
Do you see possibilities to reduce “confusion” about the properties of such a programming interface
any further?
https://elixir.bootlin.com/linux/v6.9.1/A/ident/kzalloc
Regards,
Markus
Powered by blists - more mailing lists