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 | 016cf33ba894d477cc3d5b15ef35c4bd110744c5 (patch) | |
tree | 5cbe9d7e5d1925e7ba0ce16af23138250b790d11 | |
parent | 6667846c38afee8570a93921d3de24ab525246ee (diff) |
device: simplify device_init, since it only returns -EEXIST
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-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) |