diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-20 10:40:28 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-04-21 13:47:52 +1000 |
commit | 709b291972f8c65f4427f36b45ee78c3895d1e6e (patch) | |
tree | 36e053dabe4b0be0d5ead77773360b9c0a99349c | |
parent | 8c528c667da7c7fba0ba07973a06b2d4613fbf70 (diff) |
dix: only use a single return where only one is needed.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Reviewed-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Simon Thum <simon.thum@gmx.de>
-rw-r--r-- | dix/ptrveloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |