9
0
Fork 0

Eliminate unused variable

git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@866 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
patacongo 2008-09-02 20:05:44 +00:00
parent f30d4ba32e
commit c5f766a7f1
1 changed files with 2 additions and 11 deletions

View File

@ -315,7 +315,6 @@ static inline int unaryexpression(FAR struct nsh_vtbl_s *vtbl, char **argv)
static int expression(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
{
int value;
boolean valid;
int i = 0;
/* Check for unary operations on expressions */
@ -368,11 +367,7 @@ static int expression(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
if (strcmp(argv[i], "-a") == 0)
{
if (!valid)
{
goto errout_syntax;
}
else if (value != TEST_TRUE)
if (value != TEST_TRUE)
{
return TEST_FALSE;
}
@ -387,11 +382,7 @@ static int expression(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
else if (strcmp(argv[i], "-o") == 0)
{
if (!valid)
{
goto errout_syntax;
}
else if (value == TEST_TRUE)
if (value == TEST_TRUE)
{
return TEST_TRUE;
}