cnic: Simplify cnic_release().
authorMichael Chan <mchan@broadcom.com>
Mon, 29 Jul 2013 02:03:56 +0000 (19:03 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Jul 2013 05:03:07 +0000 (22:03 -0700)
commitb54345ea32ccd830066a793388a55473e05a4679
treedd21e88b2b3654c6785f2cf6f28ca33a944a8812
parent415fb87da80fa45a9cbe820cb2a86e70668688eb
cnic: Simplify cnic_release().

Since unregister_netdevice_notifier() will replay the NETDEV_DOWN and
NETDEV_UNREGISTER_EVENTS, the cnic_dev_list will be cleaned up automatically.
The loop to cleanup the cnic_dev_list can be removed in cnic_release().

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c