mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
xfree86: move a declaration down to the block it is used in.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Tiago Vignatti <tiago.vignatti@nokia.com> Reviewed-by: Fernando Carrijo <fcarrijo@freedesktop.org>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user