On Wed, Apr 10, 2024 at 10:22:22PM +0530, R SUNDAR wrote:
use the new cleanup magic to replace of_node_put() with
__free(device_node) marking to auto release and to simplify the error
paths.
Suggested-by: Julia Lawall <julia.lawall@xxxxxxxx>
Signed-off-by: R SUNDAR <prosunofficial@xxxxxxxxx>
All CAPS for your name? Is that how it is written on documents (for
some countries this is normal, but usually not, so I have to ask.)
-
- ep = of_graph_get_endpoint_by_regs(nb7->client->dev.of_node, 1, 0);
+ struct device_node *ep __free(device_node) =
And if so, why this random USB driver being the first one? Have you
tested this?
>I Tried in same line initialization, it exceeds column limit.
+ of_graph_get_endpoint_by_regs(nb7->client->dev.of_node, 1, 0);
if (ep) {
the "common" path should not be indented, but only the exception (i.e. bail
if ep is not allocated properly.)
thanks,
greg k-h