From 709b291972f8c65f4427f36b45ee78c3895d1e6e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 20 Apr 2011 10:40:28 +1000 Subject: dix: only use a single return where only one is needed. Signed-off-by: Peter Hutterer Reviewed-by: Daniel Stone Reviewed-by: Jamey Sharp Reviewed-by: Simon Thum --- dix/ptrveloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dix/ptrveloc.c') diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c index c40fbc0d6..a91366602 100644 --- a/dix/ptrveloc.c +++ b/dix/ptrveloc.c @@ -745,14 +745,14 @@ ComputeAcceleration( res /= 6.0f; DebugAccelF("(dix ptracc) profile average [%.2f ... %.2f] is %.3f\n", vel->velocity, vel->last_velocity, res); - return res; }else{ res = BasicComputeAcceleration(dev, vel, vel->velocity, threshold, acc); DebugAccelF("(dix ptracc) profile sample [%.2f] is %.3f\n", vel->velocity, res); - return res; } + + return res; } -- cgit v1.2.3