linux_dsm_epyc7002/drivers/net/ethernet/intel/e1000e
Bruce Allan 5015e53a4c e1000e: cleanup goto statements to exit points without common work
Per ./Documentation/CodingStyle, goto statements are acceptable for the
centralized exiting of functions when there are multiple exit points which
share common work such as cleanup.  When no common work is required for
multiple exit points, the function should just return at these exit points
instead of doing an unnecessary jump to a centralized return.  This patch
cleans up the inappropriate use of goto statements, and removes unnecessary
variables (or move to a smaller scope) where possible as a result of the
cleanups.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2012-02-13 13:30:16 -08:00
..
80003es2lan.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00
82571.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00
defines.h e1000e: update copyright year 2012-01-26 19:01:17 -08:00
e1000.h e1000e: update copyright year 2012-01-26 19:01:17 -08:00
ethtool.c e1000e: remove unnecessary parentheses 2012-02-10 00:06:44 -08:00
hw.h e1000e: update copyright year 2012-01-26 19:01:17 -08:00
ich8lan.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00
mac.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00
Makefile e1000e: update copyright year 2012-01-26 19:01:17 -08:00
manage.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00
netdev.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00
nvm.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00
param.c e1000e: update copyright year 2012-01-26 19:01:17 -08:00
phy.c e1000e: cleanup goto statements to exit points without common work 2012-02-13 13:30:16 -08:00