Re: [PATCH] staging/wlags49_hs: Fix build error when CONFIG_SYSFS is not set

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Joe Perches
Date: Thursday, June 10, 2010 - 11:41 pm

On Fri, 2010-06-11 at 02:35 -0400, Javier Martinez Canillas wrote:

Yes, that works, but a better fix would be to remove the
semicolons after the function close braces.
---
diff --git a/drivers/staging/wlags49_h2/wl_sysfs.h
b/drivers/staging/wlags49_h2/wl_sysfs.h
index 6d96d03..7d5895d 100644
--- a/drivers/staging/wlags49_h2/wl_sysfs.h
+++ b/drivers/staging/wlags49_h2/wl_sysfs.h
@@ -2,6 +2,6 @@
 extern void register_wlags_sysfs(struct net_device *);
 extern void unregister_wlags_sysfs(struct net_device *);
 #else
-static void register_wlags_sysfs(struct net_device *) { return; };
-static void unregister_wlags_sysfs(struct net_device *) { return; };
+static void register_wlags_sysfs(struct net_device *) { return; }
+static void unregister_wlags_sysfs(struct net_device *) { return; }
 #endif


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] staging/wlags49_hs: Fix build error when CONFIG_SY ..., Javier Martinez Canillas, (Thu Jun 10, 11:35 pm)
Re: [PATCH] staging/wlags49_hs: Fix build error when CONFI ..., Joe Perches, (Thu Jun 10, 11:41 pm)
Re: [PATCH] staging/wlags49_hs: Fix build error when CONFI ..., Javier Martinez Canillas, (Fri Jun 11, 5:46 am)
Re: [PATCH] staging/wlags49_hs: Fix build error when CONFI ..., Javier Martinez Canillas, (Fri Jun 11, 3:12 pm)