Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213871
b: refs/heads/master
c: 39895e0
h: refs/heads/master
i:
  213869: 1797c2b
  213867: c9573e1
  213863: 6889f0d
  213855: 14e1cd7
v: v3
  • Loading branch information
Sony Chacko authored and David S. Miller committed Aug 19, 2010
1 parent 7dce9e5 commit 258e528
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1bf7a5247a0f8e42025d19d732cbc70a57e6342
refs/heads/master: 39895e07ca8ce13d8b38d00bf66236b93907c027
1 change: 0 additions & 1 deletion trunk/drivers/net/qlcnic/qlcnic.h
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,6 @@ struct qlcnic_adapter {

u8 max_rds_rings;
u8 max_sds_rings;
u8 driver_mismatch;
u8 msix_supported;
u8 rx_csum;
u8 portnum;
Expand Down
19 changes: 0 additions & 19 deletions trunk/drivers/net/qlcnic/qlcnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -709,24 +709,8 @@ qlcnic_check_options(struct qlcnic_adapter *adapter)
{
u32 fw_major, fw_minor, fw_build;
char brd_name[QLCNIC_MAX_BOARD_NAME_LEN];
char serial_num[32];
int i, offset, val;
int *ptr32;
struct pci_dev *pdev = adapter->pdev;
struct qlcnic_info nic_info;
adapter->driver_mismatch = 0;

ptr32 = (int *)&serial_num;
offset = QLCNIC_FW_SERIAL_NUM_OFFSET;
for (i = 0; i < 8; i++) {
if (qlcnic_rom_fast_read(adapter, offset, &val) == -1) {
dev_err(&pdev->dev, "error reading board info\n");
adapter->driver_mismatch = 1;
return;
}
ptr32[i] = cpu_to_le32(val);
offset += sizeof(u32);
}

fw_major = QLCRD32(adapter, QLCNIC_FW_VERSION_MAJOR);
fw_minor = QLCRD32(adapter, QLCNIC_FW_VERSION_MINOR);
Expand Down Expand Up @@ -1584,9 +1568,6 @@ static int qlcnic_open(struct net_device *netdev)
struct qlcnic_adapter *adapter = netdev_priv(netdev);
int err;

if (adapter->driver_mismatch)
return -EIO;

err = qlcnic_attach(adapter);
if (err)
return err;
Expand Down

0 comments on commit 258e528

Please sign in to comment.