diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-11 13:30:32 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2016-12-11 13:30:32 +0100 |
commit | 0dfe3357fa662531fc5afe8ab9bafbe8baee29c6 (patch) | |
tree | 2f286c62848e06749f36e055b7015c6dc864ece9 | |
parent | device: dellink is already implictly unregister_netdevice_queue (diff) | |
download | wireguard-monolithic-historical-0dfe3357fa662531fc5afe8ab9bafbe8baee29c6.tar.xz wireguard-monolithic-historical-0dfe3357fa662531fc5afe8ab9bafbe8baee29c6.zip |
device: simplify device_init, since it only returns -EEXIST
-rw-r--r-- | src/device.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/device.c b/src/device.c index 785d57d..82eb490 100644 --- a/src/device.c +++ b/src/device.c @@ -368,12 +368,7 @@ static struct rtnl_link_ops link_ops __read_mostly = { int device_init(void) { - int ret = rtnl_link_register(&link_ops); - if (ret < 0) { - pr_err("Cannot register link_ops\n"); - return ret; - } - return ret; + return rtnl_link_register(&link_ops); } void device_uninit(void) |