diff options
author | Cristian Stoica <[email protected]> | 2013-07-18 18:57:07 +0300 |
---|---|---|
committer | Herbert Xu <[email protected]> | 2013-08-01 21:39:26 +1000 |
commit | 032c8cacc702da8a53c24d24a4e3c3a572a34078 (patch) | |
tree | 89d94f1a0acb5ac3cc8041e27cb3674a13569ab1 | |
parent | 6dad41158db696d77eb17df12d5b1f3e196a7f2f (diff) |
crypto: testmgr - remove double execution of the same test suite
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 <[email protected]>
Reviewed-by: Horia Geanta <[email protected]>
Reviewed-by: Ruchika Gupta <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
-rw-r--r-- | crypto/testmgr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 2f00607039e2..e091ef6e1791 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); |