From: sgorbuno Date: Sat, 12 Mar 2011 02:39:52 +0000 (+0000) Subject: coverity warnings 15387 15096 11292 10073 fixed X-Git-Url: http://git.uio.no/git/?a=commitdiff_plain;h=4a76350fb277824b2746871bbf5dbfac46252594;p=u%2Fmrichter%2FAliRoot.git coverity warnings 15387 15096 11292 10073 fixed --- diff --git a/HLT/TPCLib/AliHLTTPCdEdxComponent.cxx b/HLT/TPCLib/AliHLTTPCdEdxComponent.cxx index 5a2714aa311..b12b231fcb3 100644 --- a/HLT/TPCLib/AliHLTTPCdEdxComponent.cxx +++ b/HLT/TPCLib/AliHLTTPCdEdxComponent.cxx @@ -73,7 +73,11 @@ AliHLTTPCdEdxComponent::AliHLTTPCdEdxComponent( const AliHLTTPCdEdxComponent& ) fStatTime( 0 ), fStatNEvents( 0 ) { - // see header file for class documentation + // dummy + for( int i=0; i" ); @@ -233,25 +237,24 @@ int AliHLTTPCdEdxComponent::Configure( const char* cdbEntry, const char* chainId //* read magnetic field - int iResult2 = 0;//ReadCDBEntry( kAliHLTCDBSolenoidBz, chainId ); fSolenoidBz=GetBz(); //* read the actual CDB entry if required - int iResult3 = ( cdbEntry ) ? ReadCDBEntry( cdbEntry, chainId ) : 0; + int iResult2 = ( cdbEntry ) ? ReadCDBEntry( cdbEntry, chainId ) : 0; //* read extra parameters from input (if they are) - int iResult4 = 0; + int iResult3 = 0; if ( commandLine && commandLine[0] != '\0' ) { HLTInfo( "received configuration string from HLT framework: \"%s\"", commandLine ); - iResult4 = ReadConfigurationString( commandLine ); + iResult3 = ReadConfigurationString( commandLine ); } // Initialise the tracker here - return iResult1 ? iResult1 : ( iResult2 ? iResult2 : ( iResult3 ? iResult3 : iResult4 ) ); + return iResult1 ? iResult1 : ( iResult2 ? iResult2 : iResult3 ); } @@ -353,7 +356,7 @@ int AliHLTTPCdEdxComponent::DoEvent Int_t slice=AliHLTTPCDefinitions::GetMinSliceNr(iter->fSpecification); Int_t patch=AliHLTTPCDefinitions::GetMinPatchNr(iter->fSpecification); Int_t slicepatch=slice*6+patch; - if( slicepatch > fkNPatches ){ + if( slicepatch >= fkNPatches ){ HLTWarning("Wrong header of TPC cluster data, slice %d, patch %d", slice, patch ); continue;