summaryrefslogtreecommitdiff
path: root/drivers/net/phy/amd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/phy/amd.c')
-rw-r--r--drivers/net/phy/amd.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/net/phy/amd.c b/drivers/net/phy/amd.c
index cfabd5f..a3fb5ce 100644
--- a/drivers/net/phy/amd.c
+++ b/drivers/net/phy/amd.c
@@ -77,13 +77,7 @@ static struct phy_driver am79c_driver = {
static int __init am79c_init(void)
{
- int ret;
-
- ret = phy_driver_register(&am79c_driver);
- if (ret)
- return ret;
-
- return 0;
+ return phy_driver_register(&am79c_driver);
}
static void __exit am79c_exit(void)