[PATCH 06/19] xfree86: move a declaration down to the block it is used in.

Fernando Carrijo fcarrijo.lists at gmail.com
Tue Sep 7 18:05:54 PDT 2010


Peter Hutterer <peter.hutterer at who-t.net> wrote:

> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

Reviewed-by: Fernando Carrijo <fcarrijo at freedesktop.org>

> ---
>  hw/xfree86/common/xf86Xinput.c |    4 +---
>  1 files changed, 1 insertions(+), 3 deletions(-)
> 
> diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
> index 1b986e3..b277986 100644
> --- a/hw/xfree86/common/xf86Xinput.c
> +++ b/hw/xfree86/common/xf86Xinput.c
> @@ -682,8 +682,6 @@ xf86AllocateInput(InputDriverPtr drv, IDevPtr idev)
>  void
>  xf86DeleteInput(InputInfoPtr pInp, int flags)
>  {
> -    InputInfoPtr p;
> -
>      /* First check if the inputdev is valid. */
>      if (pInp == NULL)
>  	return;
> @@ -711,7 +709,7 @@ xf86DeleteInput(InputInfoPtr pInp, int flags)
>      if (pInp == xf86InputDevs)
>  	xf86InputDevs = pInp->next;
>      else {
> -	p = xf86InputDevs;
> +	InputInfoPtr p = xf86InputDevs;
>  	while (p && p->next != pInp)
>  	    p = p->next;
>  	if (p)
> -- 
> 1.7.2.2
> 
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel


More information about the xorg-devel mailing list