9
0
Fork 0

net: eth: open correct edev in eth_check_open

eth_check_open gets the network device to check as parameter, so
use it rather than using eth_current. Currently both are the same,
so this currently does not fix anything.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2016-05-18 20:52:23 +02:00
parent ffc5fe0723
commit 048864571f
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ static int eth_check_open(struct eth_device *edev)
if (edev->active)
return 0;
ret = edev->open(eth_current);
ret = edev->open(edev);
if (ret)
return ret;