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:
		
							parent
							
								
									cd7059db4a
								
							
						
					
					
						commit
						b0da1bc509
					
				| 
						 | 
					@ -682,8 +682,6 @@ xf86AllocateInput(InputDriverPtr drv, IDevPtr idev)
 | 
				
			||||||
void
 | 
					void
 | 
				
			||||||
xf86DeleteInput(InputInfoPtr pInp, int flags)
 | 
					xf86DeleteInput(InputInfoPtr pInp, int flags)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    InputInfoPtr p;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    /* First check if the inputdev is valid. */
 | 
					    /* First check if the inputdev is valid. */
 | 
				
			||||||
    if (pInp == NULL)
 | 
					    if (pInp == NULL)
 | 
				
			||||||
	return;
 | 
						return;
 | 
				
			||||||
| 
						 | 
					@ -711,7 +709,7 @@ xf86DeleteInput(InputInfoPtr pInp, int flags)
 | 
				
			||||||
    if (pInp == xf86InputDevs)
 | 
					    if (pInp == xf86InputDevs)
 | 
				
			||||||
	xf86InputDevs = pInp->next;
 | 
						xf86InputDevs = pInp->next;
 | 
				
			||||||
    else {
 | 
					    else {
 | 
				
			||||||
	p = xf86InputDevs;
 | 
						InputInfoPtr p = xf86InputDevs;
 | 
				
			||||||
	while (p && p->next != pInp)
 | 
						while (p && p->next != pInp)
 | 
				
			||||||
	    p = p->next;
 | 
						    p = p->next;
 | 
				
			||||||
	if (p)
 | 
						if (p)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue