]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity 16620
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 07:25:57 +0000 (07:25 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 3 May 2011 07:25:57 +0000 (07:25 +0000)
EMCAL/AliEMCALRecoUtils.cxx

index 5a603ed7a4a73d4eaa24e16f1f41eb03c2c8212f..432f5f79023bb4cd9ed556dc9cc0f20e9e3b01fe 100644 (file)
@@ -1328,7 +1328,7 @@ Bool_t AliEMCALRecoUtils::IsGoodCluster(AliVCluster *cluster, AliEMCALGeometry *
   //
   //
   Bool_t isGood=kTRUE;
-  if(!cluster || !cluster->IsEMCAL()) isGood=kFALSE;
+  if(!cluster || !cluster->IsEMCAL()) return kFALSE;
   if(ClusterContainsBadChannel(geom,cluster->GetCellsAbsId(),cluster->GetNCells())) isGood=kFALSE;
   if(!CheckCellFiducialRegion(geom,cluster,cells)) isGood=kFALSE;
   if(fRejectExoticCluster && IsExoticCluster(cluster)) isGood=kFALSE;