Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b76f90b5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

remove ratelimt()



It mistakenly assumes that a static local in an inlined function is a
kernel-wide singleton.  It also has no callers, so let's remove it.

Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent afef80b3
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -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