Author: sylvestre
Date: Sat Jun 21 18:48:45 2014
New Revision: 211452

URL: http://llvm.org/viewvc/llvm-project?rev=211452&view=rev
Log:
Simplify the code (variable bValid is not really interesting)

Modified:
    lldb/trunk/tools/lldb-mi/MICmdFactory.cpp

Modified: lldb/trunk/tools/lldb-mi/MICmdFactory.cpp
URL: 
http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmdFactory.cpp?rev=211452&r1=211451&r2=211452&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmdFactory.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmdFactory.cpp Sat Jun 21 18:48:45 2014
@@ -158,19 +158,16 @@ bool CMICmdFactory::HaveAlready( const C
 //--
 bool CMICmdFactory::IsValid( const CMIUtilString & vMiCmd ) const
 {
-       bool bValid = true;
-
        if( vMiCmd.empty() )
        {
-               bValid = false;
                return false;
        }
 
        const MIint nPos = vMiCmd.find( " " );
        if( nPos != (MIint) std::string::npos )
-               bValid = false;
-       
-       return bValid;
+               return false;
+
+       return true;
 }
 
 //++ 
------------------------------------------------------------------------------------
@@ -226,4 +223,4 @@ bool CMICmdFactory::CmdCreate( const CMI
                vpNewCmd = pCmd;
 
        return bOk;
-}
\ No newline at end of file
+}


_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to