From f9a30bb796a24895e478cac99384a215ac0bc3da Mon Sep 17 00:00:00 2001 From: James Morris Date: Mon, 26 Mar 2007 12:17:11 -0400 Subject: [PATCH] lguest: replace useless function Signed-off-by: James Morris --- arch/i386/lguest/core.c | 7 +------ 1 files changed, 1 insertions(+), 6 deletions(-) diff --git a/arch/i386/lguest/core.c b/arch/i386/lguest/core.c index 9c22dff..5bb77cc 100644 --- a/arch/i386/lguest/core.c +++ b/arch/i386/lguest/core.c @@ -391,18 +391,13 @@ pending_dma: return sizeof(unsigned long)*2; } -static inline int kdelta_ok(ktime_t kdelta) -{ - return (ktime_to_ns(kdelta) >= LG_CLOCK_MIN_DELTA); -} - void guest_clockevent(struct lguest *lg, const ktime_t __user *u) { ktime_t kdelta; lhread(lg, &kdelta, (u32)u, sizeof(kdelta)); - if (!kdelta_ok(kdelta)) { + if (ktime_to_ns(kdelta) < LG_CLOCK_MIN_DELTA) { if (printk_ratelimit()) printk(KERN_DEBUG "%s: guest %u small delta %Ld ns\n", __FUNCTION__, lg->guestid, ktime_to_ns(kdelta)); -- 1.4.2.1