]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Staging: w35und: Kill _USE_FALLBACK_RATE_ macro
authorPekka Enberg <penberg@kernel.org>
Sun, 28 Nov 2010 20:59:57 +0000 (22:59 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 1 Dec 2010 22:45:44 +0000 (14:45 -0800)
The _USE_FALLBACK_RATE_ macro parametrizes DEFAULT_RATE_RETRY_LIMIT. It's only
used in Mxx_initial() in reg.c where _USE_FALLBACK_RATE_ is always defined
because the reg.c file includes sysdef.h at the top. It's therefore safe to
remove the _USE_FALLBACK_RATE_ macro.

Cc: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/winbond/sysdef.h
drivers/staging/winbond/wb35reg_s.h

index 7198708108bb96f924dbb53fc90dded38eb207ac..f8d8606a4efa7460499aea03db88945e4686e374 100644 (file)
@@ -3,8 +3,6 @@
 #ifndef SYS_DEF_H
 #define SYS_DEF_H
 
-#define _USE_FALLBACK_RATE_
-
 #define _WPA2_
 
 /* debug print options, mark what debug you don't need */
index 9d5993bfc1f404c185c9ddb8c8fc27e76c7fe4c4..9b782ededf432d62ed605467b0f1850d414edae3 100644 (file)
@@ -51,11 +51,7 @@ struct hw_data;
 #define DEFAULT_CWMAX                  1023    /* (M2C) CWmax. Its value is in the range 0-1023. */
 #define DEFAULT_AID                    1       /* (M34) AID. Its value is in the range 1-2007. */
 
-#ifdef _USE_FALLBACK_RATE_
 #define DEFAULT_RATE_RETRY_LIMIT       2       /* (M38) as named */
-#else
-#define DEFAULT_RATE_RETRY_LIMIT       7       /* (M38) as named */
-#endif
 
 #define DEFAULT_LONG_RETRY_LIMIT       7       /* (M38) LongRetryLimit. Its value is in the range 0-15. */
 #define DEFAULT_SHORT_RETRY_LIMIT      7       /* (M38) ShortRetryLimit. Its value is in the range 0-15. */