]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: refactor adapter resource cleanup sequence into be_cleanup()
authorKalesh AP <kalesh.purayil@emulex.com>
Mon, 23 Feb 2015 09:20:15 +0000 (04:20 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Feb 2015 20:08:32 +0000 (15:08 -0500)
commit733e1107e5f0ff05ae6f9cd27576d8da4c75d353
tree712c3b8bea833d02210496779938e972cb4b0faa
parente3aec4865b528fb1ec5c99dccd2fd860a6c26478
be2net: refactor adapter resource cleanup sequence into be_cleanup()

Most of the resource cleanup sequences performed in be_suspend(),
be_eeh_err_detected() and be_err_detection_task() are same. Moved the
common code to a new routine be_cleanup() to avoid code duplication.

Signed-off-by: Kalesh AP <kalesh.purayil@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c