diff options
author | Zhang Shengju <zhangshengju@cmss.chinamobile.com> | 2016-02-18 03:29:30 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-18 04:06:28 +0100 |
commit | e4999f256cdde4f2cbb8fc26fd61819cf4d95cf7 (patch) | |
tree | 4ad771f791829a1a5bad6e901aa9cc2207074d3d /net/8021q/vlanproc.c | |
parent | net: pack tc_cls_u32_knode struct slighter better (diff) | |
download | linux-e4999f256cdde4f2cbb8fc26fd61819cf4d95cf7.tar.xz linux-e4999f256cdde4f2cbb8fc26fd61819cf4d95cf7.zip |
vlan: change return type of vlan_proc_rem_dev
Since function vlan_proc_rem_dev() will only return 0, it's better to
return void instead of int.
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/8021q/vlanproc.c')
-rw-r--r-- | net/8021q/vlanproc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index ae63cf72a953..5f1446c9f098 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c @@ -184,12 +184,11 @@ int vlan_proc_add_dev(struct net_device *vlandev) /* * Delete directory entry for VLAN device. */ -int vlan_proc_rem_dev(struct net_device *vlandev) +void vlan_proc_rem_dev(struct net_device *vlandev) { /** NOTE: This will consume the memory pointed to by dent, it seems. */ proc_remove(vlan_dev_priv(vlandev)->dent); vlan_dev_priv(vlandev)->dent = NULL; - return 0; } /****** Proc filesystem entry points ****************************************/ |