]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCtrackerMI.cxx
Better fix for coverity
[u/mrichter/AliRoot.git] / TPC / AliTPCtrackerMI.cxx
index 41ab57be21b7dc11ab2717ec2680769b0297a9c7..83ea229e429a37e8943379ad19842b895c63e481 100644 (file)
@@ -7747,11 +7747,11 @@ void AliTPCtrackerMI::MarkSeedFree(TObject *sd)
 {
   // account that this seed is "deleted" 
   AliTPCseed* seed = dynamic_cast<AliTPCseed*>(sd);
-  if (!sd) {
+  if (!seed) {
     AliError(Form("Freeing of non-AliTPCseed %p from the pool is requested",sd)); 
     return;
   }
-  int id = seed?seed->GetPoolID():-1;
+  int id = seed->GetPoolID();
   if (id<0) {
     AliError(Form("Freeing of seed %p NOT from the pool is requested",sd)); 
     return;