Subject: [PATCH] vlan: eliminate gcc warnings with PROC_FS=n

From: "Randy.Dunlap" <[email-masked]>
Date: Mon, 24 Jan 2005 21:43:10 -0800

Eliminate gcc warnings when PROC_FS=n:
net/8021q/vlan.c:232: warning: statement with no effect
net/appletalk/ddp.c:1893: warning: statement with no effect

Signed-off-by: Randy Dunlap <[email-masked]>

diffstat:=
  net/8021q/vlanproc.h |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./net/8021q/vlanproc.h~vlan_procfs ./net/8021q/vlanproc.h
--- ./net/8021q/vlanproc.h~vlan_procfs	2004-12-24 13:35:40.000000000 -0800
+++ ./net/8021q/vlanproc.h	2005-01-24 21:30:23.216681008 -0800
@@ -11,8 +11,8 @@ void vlan_proc_cleanup (void);
 
 #define vlan_proc_init()	(0)
 #define vlan_proc_cleanup()	do {} while(0)
-#define vlan_proc_add_dev(dev)	((void)(dev), 0)
-#define vlan_proc_rem_dev(dev)	((void)(dev), 0)
+#define vlan_proc_add_dev(dev)	({(void)(dev), 0;})
+#define vlan_proc_rem_dev(dev)	({(void)(dev), 0;})
 
 #endif