diff options
author | David S. Miller <davem@davemloft.net> | 2017-09-05 20:03:35 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-05 20:03:35 -0700 |
commit | 18fb0b46d555dc42f52f69428dcd52f133877078 (patch) | |
tree | 7696741f50fb1a373aee3601074e30f6e366e425 /drivers/net | |
parent | 39cebdb77d55a193492a42170bf1c3d11e41e740 (diff) | |
parent | 6d9c153a0b84392406bc77600aa7d3ea365de041 (diff) | |
download | linux-18fb0b46d555dc42f52f69428dcd52f133877078.tar.bz2 |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/dsa_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/dsa_loop.c b/drivers/net/dsa/dsa_loop.c index 7819a9fe8321..d55051abf4ed 100644 --- a/drivers/net/dsa/dsa_loop.c +++ b/drivers/net/dsa/dsa_loop.c @@ -352,7 +352,7 @@ static void __exit dsa_loop_exit(void) mdio_driver_unregister(&dsa_loop_drv); for (i = 0; i < NUM_FIXED_PHYS; i++) - if (phydevs[i]) + if (!IS_ERR(phydevs[i])) fixed_phy_unregister(phydevs[i]); } module_exit(dsa_loop_exit); |