cnic: Fix ring setup/shutdown code
authorMichael Chan <mchan@broadcom.com>
Wed, 13 Jul 2011 17:24:19 +0000 (17:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:46:07 +0000 (08:46 -0700)
commite1dd883cb15310dc2ded9995a1f1d8b1cb1e88f3
tree9c8580a6ea022f9a3e4ef58d4424cab6e6000439
parentb7d40315c9643034ac4b5c9dda480d0124416f89
cnic: Fix ring setup/shutdown code

Latest bnx2x driver uses different CID for the iSCSI rings, so
we need to pass it in the ring init data.  The rx ring is also
zeroed out to prevent stale DMA addresses from being used after
shutdown.

The same cp local variable redefined inside the else branch is
also eliminated.

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