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

Simon Thum simon.thum at gmx.de
Wed Apr 20 13:54:10 PDT 2011


On 04/20/2011 08:28 AM, Peter Hutterer wrote:
> 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;
>  }
>  
>  
Reviewed-by: Simon Thum <simon.thum at gmx.de>

Cheers,

Simon



More information about the xorg-devel mailing list