qlcnic: fix context cleanup
authorAmit Kumar Salecha <amit.salecha@qlogic.com>
Thu, 13 May 2010 03:07:42 +0000 (03:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 May 2010 10:06:52 +0000 (03:06 -0700)
commit2372a5f1c869fd1e4dc11fb41600197fcce1121c
tree53e1960f00ce51368d4019a0321d40f26c20035b
parente0a67e2dd9aa01a59cd91a7b39a6af1282bbc214
qlcnic: fix context cleanup

Before going for recovery, every pci-func should check fw state,
irrespective of device state. This to avoid unnecssary sending
of command for ctx destroy.

Signed-off-by: Amit Kumar Salecha <amit.salecha@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/qlcnic/qlcnic_main.c