From e296246c9265657d43d6acbf1988957e1a8403df Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Fri, 7 Jun 2019 21:39:37 -0400 Subject: [PATCH] One last correction, as I accidentally dropped two calls to getCurDevMult() inside spcHierWriteParams(), where it was being passed as an argument, therefore making a redundant call and wasting compute cycles. --- ext2spice/ext2hier.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/ext2spice/ext2hier.c b/ext2spice/ext2hier.c index 5cb2a048..e5686cbf 100644 --- a/ext2spice/ext2hier.c +++ b/ext2spice/ext2hier.c @@ -182,7 +182,6 @@ spcHierWriteParams(hc, dev, scale, l, w, sdM) // For parameter an followed by parameter pn, // process both at the same time - sdM = getCurDevMult(); if (plist->parm_next && plist->parm_next->parm_type[0] == 'p' && plist->parm_next->parm_type[1] == plist->parm_type[1]) @@ -229,7 +228,6 @@ spcHierWriteParams(hc, dev, scale, l, w, sdM) // For parameter pn followed by parameter an, // process both at the same time - sdM = getCurDevMult(); if (plist->parm_next && plist->parm_next->parm_type[0] == 'a' && plist->parm_next->parm_type[1] == plist->parm_type[1])