Subject: [PATCH] (v2) arlan: remove gcc warning with CONFIG_PROC_FS=n

From: "Randy.Dunlap" <[email-masked]>
Date: Wed, 26 Jan 2005 17:38:13 -0800

Here's an update (as pointed out off-list).
Please replace the first one if that works for you.

arlan: Fix gcc warning.

With CONFIG_PROC_FS=n, gcc complains:
drivers/net/wireless/arlan-main.c:1858: warning: statement with no effect

Also remove a useless semi-colon on a #define.

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

diffstat:=
  drivers/net/wireless/arlan.h |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)

diff -Naurp ./drivers/net/wireless/arlan.h~arlan_procfs ./drivers/net/wireless/arlan.h
--- ./drivers/net/wireless/arlan.h~arlan_procfs	2005-01-24 13:00:20.000000000 -0800
+++ ./drivers/net/wireless/arlan.h	2005-01-26 13:58:02.797111176 -0800
@@ -43,8 +43,8 @@
 extern int init_arlan_proc(void);
 extern void cleanup_arlan_proc(void);
 #else
-#define init_arlan_proc()	(0)
-#define cleanup_arlan_proc()	do { } while (0);
+#define init_arlan_proc()	({ 0; })
+#define cleanup_arlan_proc()	do { } while (0)
 #endif
 
 extern struct net_device *arlan_device[MAX_ARLANS];