summaryrefslogtreecommitdiffstats
path: root/net/8021q/vlanproc.h
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.h
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.h')
-rw-r--r--net/8021q/vlanproc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/8021q/vlanproc.h b/net/8021q/vlanproc.h
index 063f60a3d5cc..8838a2e92eb6 100644
--- a/net/8021q/vlanproc.h
+++ b/net/8021q/vlanproc.h
@@ -5,7 +5,7 @@
5struct net; 5struct net;
6 6
7int vlan_proc_init(struct net *net); 7int vlan_proc_init(struct net *net);
8int vlan_proc_rem_dev(struct net_device *vlandev); 8void vlan_proc_rem_dev(struct net_device *vlandev);
9int vlan_proc_add_dev(struct net_device *vlandev); 9int vlan_proc_add_dev(struct net_device *vlandev);
10void vlan_proc_cleanup(struct net *net); 10void vlan_proc_cleanup(struct net *net);
11 11
@@ -14,7 +14,7 @@ void vlan_proc_cleanup(struct net *net);
14#define vlan_proc_init(net) (0) 14#define vlan_proc_init(net) (0)
15#define vlan_proc_cleanup(net) do {} while (0) 15#define vlan_proc_cleanup(net) do {} while (0)
16#define vlan_proc_add_dev(dev) ({(void)(dev), 0; }) 16#define vlan_proc_add_dev(dev) ({(void)(dev), 0; })
17#define vlan_proc_rem_dev(dev) ({(void)(dev), 0; }) 17#define vlan_proc_rem_dev(dev) do {} while (0)
18#endif 18#endif
19 19
20#endif /* !(__BEN_VLAN_PROC_INC__) */ 20#endif /* !(__BEN_VLAN_PROC_INC__) */