sh_eth: Remove goto statements that jump straight to a return
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 20 Mar 2014 14:00:35 +0000 (15:00 +0100)
committerSimon Horman <horms@verge.net.au>
Fri, 5 Dec 2014 00:21:29 +0000 (09:21 +0900)
commit430046638e81ea47e240a8fb6fee5a0a29f42fa6
tree9b95652d0596cc8fc0af1d582eb435e80a01ca1b
parent29bd06aa637c2a994eee642e7bff884b0b7c614b
sh_eth: Remove goto statements that jump straight to a return

"goto" is well accepted for error paths in the kernel but should not be
used unnecessarily. Return the correct value directly instead of using a
goto when possible.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry picked from commit f738a13d8365b0f824f3f20450b413f55374f175)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
drivers/net/ethernet/renesas/sh_eth.c