Commit d7cd8367 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

[NET]: Eliminate MOD_* from wanrouter.

Wan router register/unregister does not need MOD_INC/MOD_DEC because it
can not be unloaded as long as its symbols are in use by the calling module.
parent ca610762
......@@ -305,7 +305,6 @@ int register_wan_device(struct wan_device *wandev)
wandev->dev = NULL;
wandev->next = wanrouter_router_devlist;
wanrouter_router_devlist = wandev;
MOD_INC_USE_COUNT; /* prevent module from unloading */
return 0;
}
......@@ -350,7 +349,6 @@ int unregister_wan_device(char *name)
wanrouter_router_devlist = wandev->next;
wanrouter_proc_delete(wandev);
MOD_DEC_USE_COUNT;
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment