summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlanproc.c
diff options
context:
space:
mode:
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>2016-02-17 21:29:30 -0500
committerDavid S. Miller <davem@davemloft.net>2016-02-17 22:06:28 -0500
commite4999f256cdde4f2cbb8fc26fd61819cf4d95cf7 (patch)
tree4ad771f791829a1a5bad6e901aa9cc2207074d3d /net/8021q/vlanproc.c
parente014860e31e2a66b1a94088504360a6ebc023564 (diff)
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.c3
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)
184/* 184/*
185 * Delete directory entry for VLAN device. 185 * Delete directory entry for VLAN device.
186 */ 186 */
187int vlan_proc_rem_dev(struct net_device *vlandev) 187void vlan_proc_rem_dev(struct net_device *vlandev)
188{ 188{
189 /** NOTE: This will consume the memory pointed to by dent, it seems. */ 189 /** NOTE: This will consume the memory pointed to by dent, it seems. */
190 proc_remove(vlan_dev_priv(vlandev)->dent); 190 proc_remove(vlan_dev_priv(vlandev)->dent);
191 vlan_dev_priv(vlandev)->dent = NULL; 191 vlan_dev_priv(vlandev)->dent = NULL;
192 return 0;
193} 192}
194 193
195/****** Proc filesystem entry points ****************************************/ 194/****** Proc filesystem entry points ****************************************/