Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321485
b: refs/heads/master
c: 925b11f
h: refs/heads/master
i:
  321483: fa7d549
v: v3
  • Loading branch information
Carolyn Wyborny authored and Peter P Waskiewicz Jr committed Aug 4, 2012
1 parent cec1a7a commit 1588547
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: ff6e1225957cce9e93b8d84dc240e5a44094d0ec
refs/heads/master: 925b11f706642732ce2ae53b0f0d3fd54adc5075
16 changes: 8 additions & 8 deletions trunk/drivers/net/ethernet/intel/igb/e1000_82575.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,14 @@ static s32 igb_get_invariants_82575(struct e1000_hw *hw)
*/
size += NVM_WORD_SIZE_BASE_SHIFT;

/*
* Check for invalid size
*/
if ((hw->mac.type == e1000_82576) && (size > 15)) {
pr_notice("The NVM size is not valid, defaulting to 32K\n");
size = 15;
}

nvm->word_size = 1 << size;
if (hw->mac.type < e1000_i210) {
nvm->opcode_bits = 8;
Expand Down Expand Up @@ -281,14 +289,6 @@ static s32 igb_get_invariants_82575(struct e1000_hw *hw)
} else
nvm->type = e1000_nvm_flash_hw;

/*
* Check for invalid size
*/
if ((hw->mac.type == e1000_82576) && (size > 15)) {
pr_notice("The NVM size is not valid, defaulting to 32K\n");
size = 15;
}

/* NVM Function Pointers */
switch (hw->mac.type) {
case e1000_82580:
Expand Down

0 comments on commit 1588547

Please sign in to comment.