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)
commit87ac1a5296291d557080fb544f445be3bce6c51f
tree712c3b8bea833d02210496779938e972cb4b0faa
parent484d76fd5154d7d7dcc8e5928a947deb9cc0b94c
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