[PATCH 02/20] dix: only use a single return where only one is needed.

Peter Hutterer peter.hutterer at who-t.net
Tue Apr 19 23:28:11 PDT 2011


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 dix/ptrveloc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dix/ptrveloc.c b/dix/ptrveloc.c
index c40fbc0..a913666 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;
 }
 
 
-- 
1.7.4.4



More information about the xorg-devel mailing list