diff options
Diffstat (limited to 'src')
-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) |