diff options
Diffstat (limited to 'drivers/net/sh_eth.c')
-rw-r--r-- | drivers/net/sh_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sh_eth.c b/drivers/net/sh_eth.c index c51bfc57d405..077d796ccb70 100644 --- a/drivers/net/sh_eth.c +++ b/drivers/net/sh_eth.c | |||
@@ -799,7 +799,7 @@ static int sh_eth_phy_init(struct net_device *ndev) | |||
799 | char phy_id[BUS_ID_SIZE]; | 799 | char phy_id[BUS_ID_SIZE]; |
800 | struct phy_device *phydev = NULL; | 800 | struct phy_device *phydev = NULL; |
801 | 801 | ||
802 | snprintf(phy_id, BUS_ID_SIZE, PHY_ID_FMT, | 802 | snprintf(phy_id, sizeof(phy_id), PHY_ID_FMT, |
803 | mdp->mii_bus->id , mdp->phy_id); | 803 | mdp->mii_bus->id , mdp->phy_id); |
804 | 804 | ||
805 | mdp->link = PHY_DOWN; | 805 | mdp->link = PHY_DOWN; |