Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135205
b: refs/heads/master
c: fbb52f2
h: refs/heads/master
i:
  135203: 9f52dc7
v: v3
  • Loading branch information
Dhananjay Phadke authored and David S. Miller committed Mar 14, 2009
1 parent 53f4652 commit 7cea6bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 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: 09e1c061484005aa26264c3f82f2c83a273c4094
refs/heads/master: fbb52f2272e6265295f0e5f6187b628e4c162eca
10 changes: 4 additions & 6 deletions trunk/drivers/net/netxen/netxen_nic_hw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ void netxen_nic_get_firmware_info(struct netxen_adapter *adapter)
u32 fw_major, fw_minor, fw_build;
char brd_name[NETXEN_MAX_SHORT_NAME];
char serial_num[32];
int i, addr;
int i, addr, val;
int *ptr32;
struct pci_dev *pdev = adapter->pdev;

Expand All @@ -2278,14 +2278,12 @@ void netxen_nic_get_firmware_info(struct netxen_adapter *adapter)
addr = NETXEN_USER_START +
offsetof(struct netxen_new_user_info, serial_num);
for (i = 0; i < 8; i++) {
if (netxen_rom_fast_read(adapter, addr, ptr32) == -1) {
printk("%s: ERROR reading %s board userarea.\n",
netxen_nic_driver_name,
netxen_nic_driver_name);
if (netxen_rom_fast_read(adapter, addr, &val) == -1) {
dev_err(&pdev->dev, "error reading board info\n");
adapter->driver_mismatch = 1;
return;
}
ptr32++;
ptr32[i] = cpu_to_le32(val);
addr += sizeof(u32);
}

Expand Down

0 comments on commit 7cea6bf

Please sign in to comment.