public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: remove double execution of the same test suite
@ 2013-07-18 15:57 Cristian Stoica
  2013-07-19  6:48 ` Horia Geantă
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Cristian Stoica @ 2013-07-18 15:57 UTC (permalink / raw)
  To: herbert; +Cc: davem, linux-crypto, linux-kernel, horia.geanta, Cristian Stoica

This patch removes redundant execution of the same test suite in cases
where alg and driver variables are the same (e.g. when alg_test is
called from tcrypt_test)

Signed-off-by: Cristian Stoica <cristian.stoica@freescale.com>
---
 crypto/testmgr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crypto/testmgr.c b/crypto/testmgr.c
index 2f00607..e091ef6 100644
--- a/crypto/testmgr.c
+++ b/crypto/testmgr.c
@@ -3234,7 +3234,7 @@ int alg_test(const char *driver, const char *alg, u32 type, u32 mask)
 	if (i >= 0)
 		rc |= alg_test_descs[i].test(alg_test_descs + i, driver,
 					     type, mask);
-	if (j >= 0)
+	if (j >= 0 && j != i)
 		rc |= alg_test_descs[j].test(alg_test_descs + j, driver,
 					     type, mask);
 
-- 
1.8.1.5



^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-01 11:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-18 15:57 [PATCH] crypto: remove double execution of the same test suite Cristian Stoica
2013-07-19  6:48 ` Horia Geantă
2013-07-19  6:52 ` Gupta Ruchika-R66431
2013-08-01  0:47 ` Herbert Xu
2013-08-01  8:11   ` Stoica Cristian-B18196
2013-08-01 11:37     ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox