Commit 362cd67d authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

setupapi: Remove unused variables.

parent f692f195
...@@ -778,7 +778,7 @@ static const WCHAR *eol_backslash_state( struct parser *parser, const WCHAR *pos ...@@ -778,7 +778,7 @@ static const WCHAR *eol_backslash_state( struct parser *parser, const WCHAR *pos
/* handler for parser QUOTES state */ /* handler for parser QUOTES state */
static const WCHAR *quotes_state( struct parser *parser, const WCHAR *pos ) static const WCHAR *quotes_state( struct parser *parser, const WCHAR *pos )
{ {
const WCHAR *p, *token_end = parser->start; const WCHAR *p;
for (p = pos; !is_eol( parser, p ); p++) for (p = pos; !is_eol( parser, p ); p++)
{ {
...@@ -787,7 +787,7 @@ static const WCHAR *quotes_state( struct parser *parser, const WCHAR *pos ) ...@@ -787,7 +787,7 @@ static const WCHAR *quotes_state( struct parser *parser, const WCHAR *pos )
if (p+1 < parser->end && p[1] == '"') /* double quotes */ if (p+1 < parser->end && p[1] == '"') /* double quotes */
{ {
push_token( parser, p + 1 ); push_token( parser, p + 1 );
parser->start = token_end = p + 2; parser->start = p + 2;
p++; p++;
} }
else /* end of quotes */ else /* end of quotes */
......
...@@ -401,7 +401,7 @@ RETERR16 WINAPI CtlDelLdd16(LOGDISKID16 ldid) ...@@ -401,7 +401,7 @@ RETERR16 WINAPI CtlDelLdd16(LOGDISKID16 ldid)
*/ */
RETERR16 WINAPI CtlFindLdd16(LPLOGDISKDESC pldd) RETERR16 WINAPI CtlFindLdd16(LPLOGDISKDESC pldd)
{ {
LDD_LIST *pCurr, *pPrev = NULL; LDD_LIST *pCurr;
TRACE("(%p)\n", pldd); TRACE("(%p)\n", pldd);
...@@ -414,10 +414,7 @@ RETERR16 WINAPI CtlFindLdd16(LPLOGDISKDESC pldd) ...@@ -414,10 +414,7 @@ RETERR16 WINAPI CtlFindLdd16(LPLOGDISKDESC pldd)
pCurr = pFirstLDD; pCurr = pFirstLDD;
/* search until we find the appropriate LDD or hit the end */ /* search until we find the appropriate LDD or hit the end */
while ((pCurr != NULL) && (pldd->ldid > pCurr->pldd->ldid)) while ((pCurr != NULL) && (pldd->ldid > pCurr->pldd->ldid))
{
pPrev = pCurr;
pCurr = pCurr->next; pCurr = pCurr->next;
}
if ( (pCurr == NULL) /* hit end of list */ if ( (pCurr == NULL) /* hit end of list */
|| (pldd->ldid != pCurr->pldd->ldid) ) || (pldd->ldid != pCurr->pldd->ldid) )
return ERR_VCP_LDDFIND; /* correct ? */ return ERR_VCP_LDDFIND; /* correct ? */
...@@ -534,7 +531,7 @@ RETERR16 WINAPI CtlAddLdd16(LPLOGDISKDESC pldd) ...@@ -534,7 +531,7 @@ RETERR16 WINAPI CtlAddLdd16(LPLOGDISKDESC pldd)
*/ */
static RETERR16 SETUPX_GetLdd(LPLOGDISKDESC pldd) static RETERR16 SETUPX_GetLdd(LPLOGDISKDESC pldd)
{ {
LDD_LIST *pCurr, *pPrev = NULL; LDD_LIST *pCurr;
if (!std_LDDs_done) if (!std_LDDs_done)
SETUPX_CreateStandardLDDs(); SETUPX_CreateStandardLDDs();
...@@ -545,10 +542,7 @@ static RETERR16 SETUPX_GetLdd(LPLOGDISKDESC pldd) ...@@ -545,10 +542,7 @@ static RETERR16 SETUPX_GetLdd(LPLOGDISKDESC pldd)
pCurr = pFirstLDD; pCurr = pFirstLDD;
/* search until we find the appropriate LDD or hit the end */ /* search until we find the appropriate LDD or hit the end */
while ((pCurr != NULL) && (pldd->ldid > pCurr->pldd->ldid)) while ((pCurr != NULL) && (pldd->ldid > pCurr->pldd->ldid))
{ pCurr = pCurr->next;
pPrev = pCurr;
pCurr = pCurr->next;
}
if (pCurr == NULL) /* hit end of list */ if (pCurr == NULL) /* hit end of list */
return ERR_VCP_LDDFIND; /* correct ? */ return ERR_VCP_LDDFIND; /* correct ? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment