Search Linux Wireless

[PATCH -next] wireless: improve airo when PROC_FS is disabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

Skip all of the procfs-related calls when PROC_FS is not enabled.

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
 drivers/net/wireless/airo.c |    7 +++++++
 1 file changed, 7 insertions(+)

--- linux-next-20110517.orig/drivers/net/wireless/airo.c
+++ linux-next-20110517/drivers/net/wireless/airo.c
@@ -4496,6 +4496,7 @@ struct proc_data {
 	void (*on_close) (struct inode *, struct file *);
 };
 
+#ifdef CONFIG_PROC_FS
 static int setup_proc_entry( struct net_device *dev,
 			     struct airo_info *apriv ) {
 	struct proc_dir_entry *entry;
@@ -4593,6 +4594,12 @@ fail_stats_delta:
 fail:
 	return -ENOMEM;
 }
+#else
+static int setup_proc_entry( struct net_device *dev,
+			     struct airo_info *apriv ) {
+	return 0;
+}
+#endif
 
 static int takedown_proc_entry( struct net_device *dev,
 				struct airo_info *apriv ) {
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux