From 7f38b0596f572e46fb394e9d04d96b7c28ee12c4 Mon Sep 17 00:00:00 2001 From: Ed J Date: Sat, 20 Jan 2024 23:00:42 +0000 Subject: [PATCH] merge 2 identical cases --- Basic/Core/pdlapi.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Basic/Core/pdlapi.c b/Basic/Core/pdlapi.c index f4f9103c4..2cae707c3 100644 --- a/Basic/Core/pdlapi.c +++ b/Basic/Core/pdlapi.c @@ -875,11 +875,7 @@ pdl_error pdl__make_physvaffine_recprotect(pdl *it, int recurse_count) PDLDEBUG_f(printf("make_physvaffine %p\n",(void*)it)); PDL_RETERROR(PDL_err, pdl_make_physdims(it)); PDL_Indx incsleft[it->ndims]; - if(!it->trans_parent) { - PDL_RETERROR(PDL_err, pdl__make_physical_recprotect(it, recurse_count+1)); - goto mkphys_vaff_end; - } - if(!(it->trans_parent->flags & PDL_ITRANS_ISAFFINE)) { + if(!it->trans_parent || !(it->trans_parent->flags & PDL_ITRANS_ISAFFINE)) { PDL_RETERROR(PDL_err, pdl__make_physical_recprotect(it, recurse_count+1)); goto mkphys_vaff_end; }