]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Mar 2014 21:22:10 +0000 (17:22 -0400)
commit0fa4f53e9d021e47ed144b50aea78caceaed052d
tree788926a610e69f46818ec6e831948f99d9675c9a
parentee055a565964d83305cdc969f5aae69ec29c9486
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>
drivers/net/ethernet/renesas/sh_eth.c