From 591217cc9b48fef3b0e4ec509c987efd0f7ed373 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 12 Nov 2008 13:26:55 -0800 Subject: [PATCH] --- yaml --- r: 118910 b: refs/heads/master c: b76f90b526737070302a127c710263e2ac707676 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/linux/ratelimit.h | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/[refs] b/[refs] index 2c3d2740e95c..5fe49c4df88e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: afef80b3d87cae574b8c6b763505f25b74d254ef +refs/heads/master: b76f90b526737070302a127c710263e2ac707676 diff --git a/trunk/include/linux/ratelimit.h b/trunk/include/linux/ratelimit.h index 18a5b9ba9d40..00044b856453 100644 --- a/trunk/include/linux/ratelimit.h +++ b/trunk/include/linux/ratelimit.h @@ -17,11 +17,4 @@ struct ratelimit_state { struct ratelimit_state name = {interval, burst,} extern int __ratelimit(struct ratelimit_state *rs); - -static inline int ratelimit(void) -{ - static DEFINE_RATELIMIT_STATE(rs, DEFAULT_RATELIMIT_INTERVAL, - DEFAULT_RATELIMIT_BURST); - return __ratelimit(&rs); -} #endif