Skip to content

Commit

Permalink
bna: Remove Unnecessary CNA Check
Browse files Browse the repository at this point in the history
Change details:
 - ioc->cna is always set to 1 for eth functions, remove the check that
   asserts IOC is in CNA mode in bfa_ioc_firmware_lock() and
   bfa_ioc_firmware_unlock() in bfa_ioc_ct.c.

Signed-off-by: Rasesh Mody <rmody@brocade.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Rasesh Mody authored and David S. Miller committed Aug 1, 2011
1 parent 89b0212 commit 8d7e7ff
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions drivers/net/bna/bfa_ioc_ct.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@ bfa_ioc_ct_firmware_lock(struct bfa_ioc *ioc)
u32 usecnt;
struct bfi_ioc_image_hdr fwhdr;

/**
* Firmware match check is relevant only for CNA.
*/
if (!ioc->cna)
return true;

/**
* If bios boot (flash based) -- do not increment usage count
*/
Expand Down Expand Up @@ -139,12 +133,6 @@ bfa_ioc_ct_firmware_unlock(struct bfa_ioc *ioc)
{
u32 usecnt;

/**
* Firmware lock is relevant only for CNA.
*/
if (!ioc->cna)
return;

/**
* If bios boot (flash based) -- do not decrement usage count
*/
Expand Down

0 comments on commit 8d7e7ff

Please sign in to comment.