Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127832
b: refs/heads/master
c: a1d8f60
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala authored and David S. Miller committed Jan 8, 2009
1 parent f632982 commit cccaf35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: bd531e36b8aa223aded15493d0a93930e1de51c6
refs/heads/master: a1d8f6015e0fab61cc27204560d54a442181be54
6 changes: 3 additions & 3 deletions trunk/drivers/net/gianfar.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ static int gfar_of_init(struct net_device *dev)
goto err_out;
}

snprintf(priv->phy_bus_id, BUS_ID_SIZE, PHY_ID_FMT, "0",
fixed_link[0]);
snprintf(priv->phy_bus_id, sizeof(priv->phy_bus_id),
PHY_ID_FMT, "0", fixed_link[0]);
} else {
phy = of_find_node_by_phandle(*ph);

Expand All @@ -256,7 +256,7 @@ static int gfar_of_init(struct net_device *dev)
of_node_put(mdio);

gfar_mdio_bus_name(bus_name, mdio);
snprintf(priv->phy_bus_id, BUS_ID_SIZE, "%s:%02x",
snprintf(priv->phy_bus_id, sizeof(priv->phy_bus_id), "%s:%02x",
bus_name, *id);
}

Expand Down

0 comments on commit cccaf35

Please sign in to comment.