[PATCH net-next v3 33/47] net: fman: Clean up error handling
Camelia Alexandra Groza
camelia.groza at nxp.com
Thu Jul 21 06:06:43 PDT 2022
> -----Original Message-----
> From: Sean Anderson <sean.anderson at seco.com>
> Sent: Saturday, July 16, 2022 1:00
> To: David S . Miller <davem at davemloft.net>; Jakub Kicinski
> <kuba at kernel.org>; Madalin Bucur <madalin.bucur at nxp.com>;
> netdev at vger.kernel.org
> Cc: Paolo Abeni <pabeni at redhat.com>; Eric Dumazet
> <edumazet at google.com>; linux-arm-kernel at lists.infradead.org; Russell
> King <linux at armlinux.org.uk>; linux-kernel at vger.kernel.org; Sean Anderson
> <sean.anderson at seco.com>
> Subject: [PATCH net-next v3 33/47] net: fman: Clean up error handling
>
> This removes the _return label, since something like
>
> err = -EFOO;
> goto _return;
>
> can be replaced by the briefer
>
> return -EFOO;
>
> Additionally, this skips going to _return_of_node_put when dev_node has
> already been put (preventing a double put).
>
> Signed-off-by: Sean Anderson <sean.anderson at seco.com>
Acked-by: Camelia Groza <camelia.groza at nxp.com>
More information about the linux-arm-kernel
mailing list