ipw2x00: remove unused function libipw_ratelimit_debug.
authorStanislav Yakovlev <stas.yakovlev@gmail.com>
Sun, 30 Oct 2011 06:47:50 +0000 (02:47 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:01:00 +0000 (16:01 -0500)
Looks like no one uses it.

Signed-off-by: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ipw2x00/libipw.h

index 70f5586..3d5821e 100644 (file)
@@ -66,16 +66,8 @@ extern u32 libipw_debug_level;
 do { if (libipw_debug_level & (level)) \
   printk(KERN_DEBUG "libipw: %c %s " fmt, \
          in_interrupt() ? 'I' : 'U', __func__ , ## args); } while (0)
-static inline bool libipw_ratelimit_debug(u32 level)
-{
-       return (libipw_debug_level & level) && net_ratelimit();
-}
 #else
 #define LIBIPW_DEBUG(level, fmt, args...) do {} while (0)
-static inline bool libipw_ratelimit_debug(u32 level)
-{
-       return false;
-}
 #endif                         /* CONFIG_LIBIPW_DEBUG */
 
 /*