From b0da1bc509446a714eb2b29cbd35d43b1e5187ed Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 2 Sep 2010 10:39:24 +1000 Subject: [PATCH] xfree86: move a declaration down to the block it is used in. Signed-off-by: Peter Hutterer Reviewed-by: Tiago Vignatti Reviewed-by: Fernando Carrijo --- hw/xfree86/common/xf86Xinput.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index 1b986e3af..b2779864b 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)