Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288219
b: refs/heads/master
c: 73f98ea
h: refs/heads/master
i:
  288217: c3cc0ba
  288215: b1545c7
v: v3
  • Loading branch information
Dan Carpenter authored and David S. Miller committed Mar 1, 2012
1 parent 71bfe2c commit 9e526e4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 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: 1e804aecd7d447d9a939a9376603008af65e52a0
refs/heads/master: 73f98eab9b9e0bab492ca06add5657d9e702ddb1
15 changes: 8 additions & 7 deletions trunk/drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,10 @@ static void pch_gbe_check_copper_options(struct pch_gbe_adapter *adapter)
pr_debug("AutoNeg specified along with Speed or Duplex, AutoNeg parameter ignored\n");
hw->phy.autoneg_advertised = opt.def;
} else {
hw->phy.autoneg_advertised = AutoNeg;
pch_gbe_validate_option(
(int *)(&hw->phy.autoneg_advertised),
&opt, adapter);
int tmp = AutoNeg;

pch_gbe_validate_option(&tmp, &opt, adapter);
hw->phy.autoneg_advertised = tmp;
}
}

Expand Down Expand Up @@ -495,9 +495,10 @@ void pch_gbe_check_options(struct pch_gbe_adapter *adapter)
.arg = { .l = { .nr = (int)ARRAY_SIZE(fc_list),
.p = fc_list } }
};
hw->mac.fc = FlowControl;
pch_gbe_validate_option((int *)(&hw->mac.fc),
&opt, adapter);
int tmp = FlowControl;

pch_gbe_validate_option(&tmp, &opt, adapter);
hw->mac.fc = tmp;
}

pch_gbe_check_copper_options(adapter);
Expand Down

0 comments on commit 9e526e4

Please sign in to comment.